mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +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