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:
parent
2e3ffd2f23
commit
8abffde6a0
@ -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…
Reference in New Issue
Block a user