Some client may send message parts with PART command

This commit is contained in:
Sergey Matveev 2015-10-07 17:13:21 +03:00
parent 13a478f8c2
commit 3564207ae9

View File

@ -415,7 +415,8 @@ func (daemon *Daemon) Processor(events <-chan ClientEvent) {
client.ReplyNotEnoughParameters("PART")
continue
}
for _, room := range strings.Split(cols[1], ",") {
rooms := strings.Split(cols[1], " ")[0]
for _, room := range strings.Split(rooms, ",") {
r, found := daemon.rooms[room]
if !found {
client.ReplyNoChannel(room)