From 555e3e63954b27bce83379e6cb0ca702aa59206a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 27 Dec 2001 12:40:09 +0000 Subject: Added an extra check to make sure nothing bad happens.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2283 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/netsplit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/irc/core') diff --git a/src/irc/core/netsplit.c b/src/irc/core/netsplit.c index 865c9842..ded153ae 100644 --- a/src/irc/core/netsplit.c +++ b/src/irc/core/netsplit.c @@ -103,6 +103,8 @@ static NETSPLIT_REC *netsplit_add(IRC_SERVER_REC *server, const char *nick, g_return_val_if_fail(nick != NULL, NULL); g_return_val_if_fail(address != NULL, NULL); + g_return_val_if_fail(g_hash_table_lookup(server->splits, nick) == NULL); + /* get splitted servers */ dupservers = g_strdup(servers); p = strchr(dupservers, ' '); -- cgit v1.2.3