Show the line that was actually send from !raw, after format and filter
This commit is contained in:
parent
0a74a93672
commit
ea97dbb16d
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ class Module(ModuleManager.BaseModule):
|
||||||
:usage: <raw line>
|
:usage: <raw line>
|
||||||
:permission: raw
|
:permission: raw
|
||||||
"""
|
"""
|
||||||
event["server"].send_raw(event["args"])
|
line = event["server"].send_raw(event["args"])
|
||||||
|
if not line == None:
|
||||||
|
event["stdout"].write("Sent: %s" % line.parsed_line.format())
|
||||||
|
else:
|
||||||
|
event["stderr"].write("Line was filtered")
|
||||||
|
|
||||||
@utils.hook("received.command.part")
|
@utils.hook("received.command.part")
|
||||||
def part(self, event):
|
def part(self, event):
|
||||||
|
|
Loading…
Reference in a new issue