aboutsummaryrefslogtreecommitdiff
path: root/modules/admin.py
diff options
context:
space:
mode:
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: