forked from External/ergo
PRIVMSG: Fix sending them
This commit is contained in:
parent
2e3ffd2f23
commit
8abffde6a0
1 changed files with 1 additions and 1 deletions
|
|
@ -573,7 +573,7 @@ func privmsgHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool
|
|||
|
||||
for _, targetString := range targets {
|
||||
target, err := CasefoldChannel(targetString)
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
channel := server.channels.Get(target)
|
||||
if channel == nil {
|
||||
client.Send(nil, server.name, ERR_NOSUCHCHANNEL, client.nick, targetString, "No such channel")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue