diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-13 15:08:28 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-13 15:08:28 +0000 |
commit | f37ea1af1e52127c9967b54705d72fa80a9ac535 (patch) | |
tree | 625d6f41afebd84c1bc6a497d585cbfd3582005d /src/irc | |
parent | c2d8dc7eeee8e7fccef6b436ef5927d0d1cbb4a3 (diff) | |
download | irssi-f37ea1af1e52127c9967b54705d72fa80a9ac535.zip |
updated the glib error message with netsplits
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2436 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/netsplit.c | 5 |
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); |