From 3564207ae93f4b9cd19d504c2bff2372a88e14cc Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 7 Oct 2015 17:13:21 +0300 Subject: [PATCH] Some client may send message parts with PART command --- daemon.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.go b/daemon.go index b3fed28..500e80b 100644 --- a/daemon.go +++ b/daemon.go @@ -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)