]>
jfr.im git - z_archive/Ophion.git/blob - modules/autoload/chmsg.py
4 name
= 'channel messaging'
6 cache
.currmod
= __name__
7 cache
.hookcmd('SAY', 3, say
, 1, helpsay
)
8 cache
.hookcmd('ACT', 3, act
, 1, helpact
)
9 def deinit(cache
, reloading
=False):
10 cache
.currmod
= __name__
11 cache
.unhookcmd('SAY')
12 cache
.unhookcmd('ACT')
14 def say(nick
, target
, params
, bot
, cache
):
15 bot
.msg(target
, params
)
17 def act(nick
, target
, params
, bot
, cache
):
18 bot
.msg(target
, "\001ACTION %s\001" % (params
))
20 def helpsay(): return ['SAY <#channel> <line>', 'Does a /ME.']
21 def helpact(): return ['ACT <#channel> <line>', 'Does a /ME <line>.']