You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
In "irc/core/irc-nicklist.c"
Function: event_nick_in_use
The value server->connrec->alternate_nick is set to NULL when you set the alternate_nick in irssi an saved the changes.
Example:
I have a network configured in chatnets with a nickname and some servers:
hispano = {type ="IRC"; nick ="anick:password";};
When I connect with: irssi -c hispano, if the nick is in use, it doesn't try the alternate_nick. I checked this using a fprintf in the function "event_nick_in_use":
fprintf(stderr,"server->nick = %s\nserver->connrec->nick = %s\nserver->connrec->alternate_nick=%s\n",
server->nick, server->connrec->nick, server->connrec->alternate_nick);
/* nick already in use - need to change it .. */
.....
And I got this:
server->nick = anick:apassword
server->connrec->nick = anick:apassword
server->connrec->alternate_nick=(null)
But in the configuration it's not null:
18:21 [server]
18:21 alternate_nick = rolf2
I'm trying to track down the where that structure is filled, but my knowledge of the source code is limited and I'm going very slow.
Also the behaviour in irssi-svn is the same.
Thank you for your time.
The text was updated successfully, but these errors were encountered:
In "irc/core/irc-nicklist.c"
Function: event_nick_in_use
The value server->connrec->alternate_nick is set to NULL when you set the alternate_nick in irssi an saved the changes.
Example:
I have a network configured in chatnets with a nickname and some servers:
hispano = {type ="IRC"; nick ="anick:password";};
When I connect with: irssi -c hispano, if the nick is in use, it doesn't try the alternate_nick. I checked this using a fprintf in the function "event_nick_in_use":
fprintf(stderr,"server->nick = %s\nserver->connrec->nick = %s\nserver->connrec->alternate_nick=%s\n",
server->nick, server->connrec->nick, server->connrec->alternate_nick);
/* nick already in use - need to change it .. */
.....
And I got this:
server->nick = anick:apassword
server->connrec->nick = anick:apassword
server->connrec->alternate_nick=(null)
But in the configuration it's not null:
18:21 [server]
18:21 alternate_nick = rolf2
I'm trying to track down the where that structure is filled, but my knowledge of the source code is limited and I'm going very slow.
Also the behaviour in irssi-svn is the same.
Thank you for your time.
The text was updated successfully, but these errors were encountered: