Implemented topic lock
This commit is contained in:
parent
624c6f3ed7
commit
85fb96dbb4
@ -211,6 +211,12 @@ func (s *Server) handleEvent(e Event) {
|
||||
return
|
||||
}
|
||||
|
||||
clientMode := channel.modeMap[strings.ToLower(e.client.nick)]
|
||||
if channel.mode.topicLocked && !clientMode.operator {
|
||||
e.client.reply(errNoPriv)
|
||||
return
|
||||
}
|
||||
|
||||
if args[1] == ":" {
|
||||
channel.topic = ""
|
||||
for _, client := range channel.clientMap {
|
||||
|
Loading…
Reference in New Issue
Block a user