From a18ae83165e77a721c6f15e9a475e5475aa47846 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Fri, 23 Aug 2013 22:21:47 +0100 Subject: [PATCH] Require registration for /LIST --- rosella.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rosella.go b/rosella.go index d8e883a..7669eab 100644 --- a/rosella.go +++ b/rosella.go @@ -273,6 +273,11 @@ func (s *Server) handleEvent(e Event) { } case command == "LIST": + if e.client.registered == false { + e.client.reply(errNotReg) + return + } + if len(args) == 0 { chanList := make([]string, 0, len(s.channelMap))