mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
rename func
This commit is contained in:
@@ -1013,9 +1013,9 @@ def remove_from_botlist(argv, **args):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
@pluginfunction("set_status", "set bot status", ptypes_COMMAND)
|
@pluginfunction("set-status", "set bot status", ptypes_COMMAND)
|
||||||
def set_status(argv, **args):
|
def set_status(argv, **args):
|
||||||
if 'set_status' != argv[0] or len(argv) != 2:
|
if 'set-status' != argv[0] or len(argv) != 2:
|
||||||
return
|
return
|
||||||
|
|
||||||
if argv[1] == 'mute' and args['reply_user'] == conf('bot_owner'):
|
if argv[1] == 'mute' and args['reply_user'] == conf('bot_owner'):
|
||||||
|
|||||||
Reference in New Issue
Block a user