aboutsummaryrefslogtreecommitdiff
path: root/modules/admin.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-27 17:38:17 +0000
committerGravatar jesopo2019-11-27 17:38:17 +0000
commit747ba5c646d2755cb3ab48bbe98032752723e8c6 (patch)
tree20870d3087aadcbbcb3eda504b301c9401cbfcae /modules/admin.py
parentshow username when a toot is CWed (diff)
signature
add IRCLine.parse_human() to allow for "!raw /msg jesopo hello"
Diffstat (limited to 'modules/admin.py')
-rw-r--r--modules/admin.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/admin.py b/modules/admin.py
index 76b6bb0c..364380d4 100644
--- a/modules/admin.py
+++ b/modules/admin.py
@@ -21,7 +21,12 @@ class Module(ModuleManager.BaseModule):
:usage: <raw line>
:permission: raw
"""
- line = event["server"].send_raw(event["args"])
+ if IRCLine.is_human(event["args"]):
+ line = IRCLine.parse_human(event["args"])
+ else:
+ line = IRCLine.parse_line(event["args"])
+ line = event["server"].send(line)
+
if not line == None:
event["stdout"].write("Sent: %s" % line.parsed_line.format())
else: