aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-04-16 13:47:06 +0100
committerGravatar jesopo2019-04-16 13:47:45 +0100
commitee8c7813f77ac9c9baa46041ca31155c6d19c0e9 (patch)
tree56c36216d99e3fe315717c6d29b6d8a08a02ec2a /modules
parentOnly show no-commit pushes when it's a force (diff)
signature
Add IRCServer.send_raw so modules don't have to parse messages before sending
them
Diffstat (limited to 'modules')
-rw-r--r--modules/admin.py3
-rw-r--r--modules/perform.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/modules/admin.py b/modules/admin.py
index 24fa22a3..c9096e54 100644
--- a/modules/admin.py
+++ b/modules/admin.py
@@ -18,8 +18,7 @@ class Module(ModuleManager.BaseModule):
:usage: <raw line>
:permission: raw
"""
- line = utils.irc.parse_line(event["args"])
- event["server"].send(line)
+ event["server"].send_raw(event["args"])
@utils.hook("received.command.part")
def part(self, event):
diff --git a/modules/perform.py b/modules/perform.py
index 3dfe34d2..c04ea092 100644
--- a/modules/perform.py
+++ b/modules/perform.py
@@ -8,7 +8,7 @@ class Module(ModuleManager.BaseModule):
for j, part in enumerate(command[:]):
command[j] = part.replace("%nick%", server.nickname)
command = "%".join(command)
- server.send(utils.irc.parse_line(command))
+ server.send_raw(command)
@utils.hook("received.001", priority=EventManager.PRIORITY_URGENT)
def on_connect(self, event):