diff options
| author | 2019-12-10 05:27:35 +0000 | |
|---|---|---|
| committer | 2019-12-10 05:27:35 +0000 | |
| commit | 638eee0d685c06d258cb55287204ca97bca7c344 (patch) | |
| tree | 33442439317ae2846f1efb7674b7a3758c8990a1 /modules/fake_echo.py | |
| parent | move sys.exit() codes to an enum in utils.consts (diff) | |
| signature | ||
move core modules to src/core_modules, make them uneffected by white/black list
Diffstat (limited to 'modules/fake_echo.py')
| -rw-r--r-- | modules/fake_echo.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/modules/fake_echo.py b/modules/fake_echo.py deleted file mode 100644 index bb7fbf43..00000000 --- a/modules/fake_echo.py +++ /dev/null @@ -1,13 +0,0 @@ -from src import EventManager, IRCLine, ModuleManager, utils - -class Module(ModuleManager.BaseModule): - @utils.hook("raw.send.privmsg", priority=EventManager.PRIORITY_MONITOR) - @utils.hook("raw.send.notice", priority=EventManager.PRIORITY_MONITOR) - def send_message(self, event): - our_hostmask = IRCLine.parse_hostmask(event["server"].hostmask()) - - echo = IRCLine.ParsedLine(event["line"].command, event["line"].args, - source=our_hostmask, tags=event["line"].tags) - echo.id = event["line"].id - - self.events.on("raw.received").call(line=echo, server=event["server"]) |
