Show the line that was actually send from !raw, after format and filter

This commit is contained in:
jesopo 2019-09-07 12:50:50 +01:00
parent 0a74a93672
commit ea97dbb16d

View file

@ -21,7 +21,11 @@ class Module(ModuleManager.BaseModule):
:usage: <raw line>
: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")
def part(self, event):