summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2015-10-07 17:13:21 +0300
committerSergey Matveev <stargrave@stargrave.org>2015-10-07 17:13:21 +0300
commit3564207ae93f4b9cd19d504c2bff2372a88e14cc (patch)
treecd924facc835ba2ee54a391820b85270454333c3
parent13a478f8c222ff78664806e296478076461cb439 (diff)
downloadgoircd-3564207ae93f4b9cd19d504c2bff2372a88e14cc.tar.xz
Some client may send message parts with PART command
-rw-r--r--daemon.go3
1 files changed, 2 insertions, 1 deletions
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)