mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
92933dace3
commit
555e3e6395
@ -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(nick != NULL, NULL);
|
||||||
g_return_val_if_fail(address != 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 */
|
/* get splitted servers */
|
||||||
dupservers = g_strdup(servers);
|
dupservers = g_strdup(servers);
|
||||||
p = strchr(dupservers, ' ');
|
p = strchr(dupservers, ' ');
|
||||||
|
Loading…
Reference in New Issue
Block a user