1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

irc: add option irc.network.alternate_nick to disable dynamic nick generation when all nicks are already in use on server (task #12281)

This commit is contained in:
Nils Görs
2012-11-02 17:51:12 +01:00
committed by Sebastien Helleu
parent 8b52fc90d5
commit b1005fc23e
20 changed files with 126 additions and 16 deletions
+7 -4
View File
@@ -551,10 +551,13 @@ irc_server_get_alternate_nick (struct t_irc_server *server)
return nick;
}
/*
* we have tried all nicks in list, then use main nick
* and we will add "_" and then number if needed
*/
/* now we have tried all nicks in list */
/* if alternate nick is disabled, just return NULL */
if (!weechat_config_boolean (irc_config_network_alternate_nick))
return NULL;
/* use main nick and we will add "_" and then number if needed */
server->nick_alternate_number = 0;
snprintf (nick, sizeof (nick), "%s", server->nicks_array[0]);
}