]>
Commit | Line | Data |
---|---|---|
1 | # Erebus IRC bot - Author: Erebus Team | |
2 | # !EVAL and !EXEC commands | |
3 | # This file is released into the public domain; see http://unlicense.org/ | |
4 | ||
5 | # module info | |
6 | modinfo = { | |
7 | 'author': 'Erebus Team', | |
8 | 'license': 'public domain', | |
9 | 'compatible': [1], | |
10 | 'depends': [], | |
11 | } | |
12 | ||
13 | # preamble | |
14 | import modlib | |
15 | lib = modlib.modlib(__name__) | |
16 | modstart = lib.modstart | |
17 | modstop = lib.modstop | |
18 | ||
19 | # module code | |
20 | import sys | |
21 | import ctlmod | |
22 | ||
23 | ||
24 | @lib.hook('die', needchan=False, glevel=lib.MANAGER) | |
25 | def cmd_die(bot, user, chan, realtarget, *args): | |
26 | sys.exit(0) | |
27 | os._exit(0) |