Sfoglia il codice sorgente

Merge pull request #33 from Yulli/develop

Allow a normal user to devoice and deop themselves
tags/v0.1^2
Ben Kurtovic 12 anni fa
parent
commit
b62e0d5140
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      earwigbot/commands/chanops.py

+ 3
- 1
earwigbot/commands/chanops.py Vedi File

@@ -33,7 +33,9 @@ class ChanOps(Command):
msg = "Available commands are !voice, !devoice, !op, !deop, !join, and !part."
self.reply(data, msg)
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.")
return



Caricamento…
Annulla
Salva