whitespace and import fixes
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import logging
|
||||
import time
|
||||
import config
|
||||
from common import get_nick_from_object
|
||||
from plugin_system import pluginfunction, ptypes
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
import time
|
||||
|
||||
import config
|
||||
from plugin_system import pluginfunction, ptypes
|
||||
|
||||
@pluginfunction('send_record', 'delivers previously saved message to user', ptypes.MUC_ONLINE)
|
||||
@config.config_locked
|
||||
@@ -21,13 +21,13 @@ def send_record(**args):
|
||||
return None
|
||||
|
||||
response = {
|
||||
'msg': '%s, there %s %d message%s for you:\n%s' % (
|
||||
arg_user,
|
||||
'is' if len(records) == 1 else 'are',
|
||||
len(records),
|
||||
'' if len(records) == 1 else 's',
|
||||
'\n'.join(records)
|
||||
)
|
||||
'msg': '%s, there %s %d message%s for you:\n%s' % (
|
||||
arg_user,
|
||||
'is' if len(records) == 1 else 'are',
|
||||
len(records),
|
||||
'' if len(records) == 1 else 's',
|
||||
'\n'.join(records)
|
||||
)
|
||||
}
|
||||
|
||||
user_records.pop(arg_user_key)
|
||||
@@ -35,6 +35,7 @@ def send_record(**args):
|
||||
|
||||
return response
|
||||
|
||||
|
||||
@pluginfunction(
|
||||
'record', 'record a message for a now offline user (usage: record {user} {some message};'
|
||||
' {some message} == "previous" to use the last channel message)', ptypes.COMMAND)
|
||||
@@ -85,4 +86,3 @@ def command_show_recordlist(argv, **args):
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user