summaryrefslogtreecommitdiff
path: root/src/irc/core/netsplit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/core/netsplit.c')
-rw-r--r--src/irc/core/netsplit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/irc/core/netsplit.c b/src/irc/core/netsplit.c
index b0fcb08d..d19c404b 100644
--- a/src/irc/core/netsplit.c
+++ b/src/irc/core/netsplit.c
@@ -103,7 +103,10 @@ 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, NULL);
+ if (g_hash_table_lookup(server->splits, nick) != NULL) {
+ g_warning("%s is already in split list (how?)", nick);
+ return NULL;
+ }
/* get splitted servers */
dupservers = g_strdup(servers);