mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-23 03:02:48 +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 {
|
for _, targetString := range targets {
|
||||||
target, err := CasefoldChannel(targetString)
|
target, err := CasefoldChannel(targetString)
|
||||||
if err != nil {
|
if err == nil {
|
||||||
channel := server.channels.Get(target)
|
channel := server.channels.Get(target)
|
||||||
if channel == nil {
|
if channel == nil {
|
||||||
client.Send(nil, server.name, ERR_NOSUCHCHANNEL, client.nick, targetString, "No such channel")
|
client.Send(nil, server.name, ERR_NOSUCHCHANNEL, client.nick, targetString, "No such channel")
|
||||||
|
Loading…
Reference in New Issue
Block a user