1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

strip : from user in record {user}

This commit is contained in:
Thorsten
2016-01-28 20:18:26 +01:00
parent 6b20f89581
commit 5af93c6d7a
3 changed files with 21 additions and 10 deletions

View File

@@ -205,6 +205,14 @@ def pluginfunction(name, desc, plugin_type, ratelimit_class=RATE_GLOBAL, enabled
return decorate
def get_nick_from_object(message_obj):
"""
not quite correct yet, also the private property access isn't nice.
"""
nick = message_obj['mucnick'] or message_obj['from']._jid[2]
return nick
ptypes_PARSE = 'parser'
ptypes_COMMAND = 'command'
ptypes = [ptypes_PARSE, ptypes_COMMAND]