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

alternate_nick to null at connect. #473

@irssibot

Description

@irssibot

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions