SmartIrc4net icon indicating copy to clipboard operation
SmartIrc4net copied to clipboard

How to get the `IrcClient` to delay long enough to identify a nick before attempting to join a channel?

Open Rouneq opened this issue 5 months ago • 3 comments

Too much code to include here, I've uploaded as a LINQPad share

https://share.linqpad.net/bfrmhwpe.linq

Trying to get the code to identify a nick prior to joining a channel. Nothing I do seems to get it to work. I can comment out the RfcJoin call and manually join, but this defeats the purpose of writing the app in the first place.

With the call, the order of the displayed text is

Query Notice This nickname is registered and protected. If it is your nick, type "/msg NickServ IDENTIFY password". Otherwise, please choose a different nick. If you do not change within 1 minute, I will change your nick. Error Message [#IRC-Channel]: You need a registered nick to join that channel. Query Notice Password accepted - you are now recognized. Raw Message :NickServ MODE systemtrackr_test_bot :+r {UserModeChange}

The code is set to specifically wait for a response to the IDENTIFY message. And furthermore wait five seconds after this before attempting to join the channel.

What am I missing here?

Rouneq avatar Sep 23 '24 16:09 Rouneq