summaryrefslogtreecommitdiff
path: root/src/irc/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-12-27 12:40:09 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-12-27 12:40:09 +0000
commit555e3e63954b27bce83379e6cb0ca702aa59206a (patch)
treed839d0be995a4a3183ad5f614accb95a44d96654 /src/irc/core
parent92933dace3d9e6d65a407175a8c879be3cdc0843 (diff)
downloadirssi-555e3e63954b27bce83379e6cb0ca702aa59206a.zip
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
Diffstat (limited to 'src/irc/core')
-rw-r--r--src/irc/core/netsplit.c2
1 files changed, 2 insertions, 0 deletions
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, ' ');