Ver código fonte

A normal user can devoice and deop themselves

tags/v0.1^2
Justin Yulli Kim 12 anos atrás
pai
commit
86639a977c
1 arquivos alterados com 3 adições e 1 exclusões
  1. +3
    -1
      earwigbot/commands/chanops.py

+ 3
- 1
earwigbot/commands/chanops.py Ver arquivo

@@ -33,7 +33,9 @@ class ChanOps(Command):
msg = "Available commands are !voice, !devoice, !op, !deop, !join, and !part." msg = "Available commands are !voice, !devoice, !op, !deop, !join, and !part."
self.reply(data, msg) self.reply(data, msg)
return return
if data.host not in self.config.irc["permissions"]["admins"]:
if data.command[:2] == "de" and not data.args:
target = data.nick
elif data.host not in self.config.irc["permissions"]["admins"]:
self.reply(data, "You must be a bot admin to use this command.") self.reply(data, "You must be a bot admin to use this command.")
return return




Carregando…
Cancelar
Salvar