Renamed the admin/unadmin commands
This commit is contained in:
parent
9234f3f0ab
commit
3bd1843d34
1 changed files with 4 additions and 4 deletions
|
@ -20,8 +20,8 @@ def admins(inp, notice=None, bot=None):
|
||||||
|
|
||||||
|
|
||||||
@hook.command(adminonly=True)
|
@hook.command(adminonly=True)
|
||||||
def admin(inp, notice=None, bot=None, config=None):
|
def addadmin(inp, notice=None, bot=None, config=None):
|
||||||
".admin <nick|host> -- Make <nick|host> an admin."
|
".addadmin <nick|host> -- Make <nick|host> an admin."
|
||||||
target = inp.lower()
|
target = inp.lower()
|
||||||
adminlist = bot.config["admins"]
|
adminlist = bot.config["admins"]
|
||||||
if target in adminlist:
|
if target in adminlist:
|
||||||
|
@ -35,8 +35,8 @@ def admin(inp, notice=None, bot=None, config=None):
|
||||||
|
|
||||||
|
|
||||||
@hook.command(adminonly=True)
|
@hook.command(adminonly=True)
|
||||||
def unadmin(inp, notice=None, bot=None, config=None):
|
def deladmin(inp, notice=None, bot=None, config=None):
|
||||||
".unadmin <nick|host> -- Make <nick|host> a non-admin."
|
".deladmin <nick|host> -- Make <nick|host> a non-admin."
|
||||||
target = inp.lower()
|
target = inp.lower()
|
||||||
adminlist = bot.config["admins"]
|
adminlist = bot.config["admins"]
|
||||||
if target in adminlist:
|
if target in adminlist:
|
||||||
|
|
Reference in a new issue