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
1 changed files with 2 additions and 1 deletions

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)