]> Cypherpunks.ru repositories - goircd.git/commitdiff
Some client may send message parts with PART command
authorSergey Matveev <stargrave@stargrave.org>
Wed, 7 Oct 2015 14:13:21 +0000 (17:13 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 7 Oct 2015 14:13:21 +0000 (17:13 +0300)
daemon.go

index b3fed28cb10f43be262351b172ce877de7504eab..500e80b61584ca0cb7054275851f63c4dd6936b4 100644 (file)
--- 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)