]> Cypherpunks.ru repositories - goircd.git/blobdiff - room.go
Make an empty MODE b reply for faster client's sync
[goircd.git] / room.go
diff --git a/room.go b/room.go
index eeff4d06cb8580aced5945694a74bbdf8de5cb61..ccfdb077b24b638d3a83adf1bbaa692fc4ab49a7 100644 (file)
--- a/room.go
+++ b/room.go
@@ -140,6 +140,10 @@ func (room *Room) Processor(events <-chan ClientEvent) {
                                client.Msg(fmt.Sprintf("324 %s %s %s", client.nickname, room.name, mode))
                                continue
                        }
+                       if strings.HasPrefix(event.text, "b") {
+                               client.ReplyNicknamed("368", room.name, "End of channel ban list")
+                               continue
+                       }
                        if strings.HasPrefix(event.text, "-k") || strings.HasPrefix(event.text, "+k") {
                                if _, subscribed := room.members[client]; !subscribed {
                                        client.ReplyParts("442", room.name, "You are not on that channel")