Use send.stdout in modules/in.py
This commit is contained in:
parent
2852afd5f7
commit
bac4ba89b7
1 changed files with 5 additions and 3 deletions
|
@ -33,6 +33,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
def timer_due(self, event):
|
def timer_due(self, event):
|
||||||
server = self.bot.get_server(event["server_id"])
|
server = self.bot.get_server(event["server_id"])
|
||||||
if server:
|
if server:
|
||||||
server.send_message(event["target"],
|
message = "%s: this is your reminder: %s" % (
|
||||||
"%s, this is your reminder: %s" % (
|
event["nickname"], event["message"])
|
||||||
event["nickname"], event["message"]))
|
target = server.get_target(event["target"])
|
||||||
|
self.events.on("send.stdout").call(target=target, module_name="In",
|
||||||
|
server=server, message=message)
|
||||||
|
|
Loading…
Reference in a new issue