Skip to content

Can't message channel immediately after joining #13

@zloveless

Description

@zloveless

Trying to message a channel immediately after joining returns an ArgumentException saying it's invalid.

System.ArgumentException: The channel name '#genesis' is either invalid or does not exist. (Parameter 'target')
   at Atlantis.Net.Irc.IrcClientExtensions.MessageAsync(IrcClient client, String target, String message)

The exception is expected because Message() checks if the channel's first "registered" or "known" to the IRC client to prevent spamming the server with PRIVMSG's for channels that the client isn't on. However, I'm thinking we should see if the JoinChannel() method could add the channel.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions