Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

server->connrec->alternate_nick not carried between reconnects #181

Closed
irssibot opened this issue Jan 23, 2005 · 3 comments
Closed

server->connrec->alternate_nick not carried between reconnects #181

irssibot opened this issue Jan 23, 2005 · 3 comments

Comments

@irssibot
Copy link
Collaborator

It seems when you are connected to a server, and you are automatically disconnect (for example, in the case of a nick collosion), and irssi auto reconnects, some data out of the server struct that it is reconnecting is being lost.

in particular server->connrec->alternate_nick

on a normal connect, this is filled in with the alternate_nick out of the config, but in the case of an unexpected reconnect, it is not (it's empty instead).

thus by it being empty, irssi on a reconnect like this, will never attempt to use the alternate_nick because it is NULL (as can be seen for the snippet from the event_nick_in_use function).

        if (g_strcasecmp(server->nick, server->connrec->nick) == 0 &&
            server->connrec->alternate_nick != NULL &&
            g_strcasecmp(server->connrec->alternate_nick, server->nick) != 0) {

I was able to replicate this by getting irssi to print out the values of them in the event_nick_in_use function

I do hope you get what the error is, explained as best as I can.

FYI, the settings in my config for nick and alternate_nick are:

0118:43 nick = praetorian
0118:43 alternate_nick = prae

Thanks. :)

@irssibot
Copy link
Collaborator Author

This still appears to be happening in SVN Revision 3711.

Should of mentioned originally also, that the code snipet is from the even_nick_in_use function in "src/irc/core/irc-nicklist.c"

besides that, any progress? this bug can tend to get quite annoying for me.

@irssibot
Copy link
Collaborator Author

Fixed in svn now

@irssibot
Copy link
Collaborator Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant