mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Added an assert to unAction.
This commit is contained in:
parent
aa1b992643
commit
6150a21ba3
@ -217,6 +217,7 @@ def isAction(msg):
|
||||
_unactionre = re.compile(r'^\x01ACTION (.*)\x01$')
|
||||
def unAction(msg):
|
||||
"""Returns the payload (i.e., non-ACTION text) of an ACTION msg."""
|
||||
assert isAction(msg)
|
||||
return _unactionre.match(msg.args[1]).group(1)
|
||||
|
||||
def prettyPrint(msg, addRecipients=False):
|
||||
|
Loading…
Reference in New Issue
Block a user