3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 18:52:41 +01:00

PRIVMSG: Fix sending them

This commit is contained in:
Daniel Oaks 2016-10-16 12:59:36 +10:00
parent 2e3ffd2f23
commit 8abffde6a0

View File

@ -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")