Require registration for /LIST

This commit is contained in:
Harry Jeffery 2013-08-23 22:21:47 +01:00
parent dfcebc74a3
commit a18ae83165

View File

@ -273,6 +273,11 @@ func (s *Server) handleEvent(e Event) {
} }
case command == "LIST": case command == "LIST":
if e.client.registered == false {
e.client.reply(errNotReg)
return
}
if len(args) == 0 { if len(args) == 0 {
chanList := make([]string, 0, len(s.channelMap)) chanList := make([]string, 0, len(s.channelMap))