]>
jfr.im git - erebus.git/blob - modlib.py
2 def __init__(self
, name
):
8 def modstart(self
, parent
):
10 for cmd
, func
in self
.hooks
.iteritems():
11 self
.parent
.hook(cmd
, func
)
12 def modstop(self
, parent
):
13 for cmd
, func
in self
.hooks
.iteritems():
14 self
.parent
.unhook(cmd
, func
)
18 self
.hooks
[cmd
] = func
19 if self
.parent
is not None:
20 self
.parent
.hook(cmd
, func
)