aboutsummaryrefslogtreecommitdiff
path: root/modules/commands.py
diff options
context:
space:
mode:
authorGravatar jesopo2016-03-31 13:37:08 +0100
committerGravatar jesopo2016-03-31 13:37:08 +0100
commit8843d9a46916ba02431aa99043d6dc49a962aad7 (patch)
treed965c70a18b35649a7ac2a1a4fa081241ba255cb /modules/commands.py
parentfixed the frankly ridiculously wrong youtube url regex in youtube.py. (diff)
removed yet more left over code from when commands were channel-only.
Diffstat (limited to 'modules/commands.py')
-rw-r--r--modules/commands.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/commands.py b/modules/commands.py
index de941f77..3ea4a4e0 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -157,14 +157,12 @@ class Module(object):
event["target"].last_stdout.send()
def send_stdout(self, event):
- if event["target"].name[0] in event["server"].channel_types:
- stdout = ChannelStdOut(event["module_name"], event["target"])
+ stdout = StdOut(event["module_name"], event["target"])
stdout.write(event["message"]).send()
if stdout.has_text():
event["target"].last_stdout = stdout
def send_stderr(self, event):
- if event["target"].name[0] in event["server"].channel_types:
- stderr = ChannelStdErr(event["module_name"], event["target"])
+ stderr = StdErr(event["module_name"], event["target"])
stderr.write(event["message"]).send()
if stderr.has_text():
event["target"].last_stderr = stderr