mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
The "check if nick change was done with our /NICK" didn't work if this was
our first nick change.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2368 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d322b86c3d
commit
bd91fbc88b
@ -312,7 +312,8 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
|
|||||||
|
|
||||||
if (g_strcasecmp(orignick, server->nick) == 0) {
|
if (g_strcasecmp(orignick, server->nick) == 0) {
|
||||||
/* You changed your nick */
|
/* You changed your nick */
|
||||||
if (g_strcasecmp(server->last_nick, nick) == 0) {
|
if (server->last_nick != NULL &&
|
||||||
|
g_strcasecmp(server->last_nick, nick) == 0) {
|
||||||
/* changed with /NICK - keep it as wanted nick */
|
/* changed with /NICK - keep it as wanted nick */
|
||||||
g_free(server->connrec->nick);
|
g_free(server->connrec->nick);
|
||||||
server->connrec->nick = g_strdup(nick);
|
server->connrec->nick = g_strdup(nick);
|
||||||
|
Loading…
Reference in New Issue
Block a user