Debug assert fail on command 451 after joining channel

Bug #519051 reported by Waldo2k2
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IRC.NET
Status tracked in Trunk
0.1
Invalid
Undecided
Alexander Regueiro
0.2
Invalid
Undecided
Alexander Regueiro
Trunk
Invalid
Undecided
Alexander Regueiro

Bug Description

Versions affected: trunk, 0.1

Setup:
Connecting to local irc server running inspircd daemon + Anope services.

Usage:
        void ircClient_Connected(object sender, EventArgs e)
        {
            client.Channels.Join("#testChannel");
        }

Result:
Receive Debug assertion failure in ProcessMessageNumericError method in IrcClientMessageProcessing.cs.
Assertion: Debug.Assert(message.Parameters[0] == this.localUser.NickName);
message.Command = 451
message.Parameters[0] = JOIN
message.Parameters[1] = "You have not registered"

I'm not sure where the issue lies here. Connecting to an UnrealIRCd server resulted in the same outcome. If I do not attempt to join a channel via Channels.Join(), and turn on the autojoin module in inspircd, the testclient will be joined to the channel and show up in the userlist.

Waldo2k2 (peterson-drew)
description: updated
Changed in ircdotnet:
assignee: nobody → Noldorin (noldorin)
milestone: none → 0.2.0
Revision history for this message
Waldo2k2 (peterson-drew) wrote :

You probably already know this, but according to http://www.faqs.org/rfcs/rfc1459.html
Numeric 451 ERR_NOTREGISTERED
Returned by the server to indicate that the client must be registered before the server will allow it to be parsed in detail.

I am unsure whether that means the client will not be allowed to connect or not. Most clients seem to take this as a warning/information (chatzilla, xchat, mirc, irssi) and still join the channel.

Revision history for this message
Alexander Regueiro (alexreg) wrote :

The cause here is just what the error says, in fact... You're trying to join the channel before you're registered. You want to be doing any channel operations no sooner than the IrcClient.Registered event handler. Try that, and I suspect you should not have any problems.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.