Require registration for /LIST
This commit is contained in:
parent
dfcebc74a3
commit
a18ae83165
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user