]>
jfr.im git - z_archive/pyp10.git/blob - modules/q.py
2 def __init__(self
, uplink
):
5 self
.num
= self
.uplink
.makenick(self
, self
.nick
, 'TheQBot','PyP10 Q')
6 self
.uplink
.join("#p10", self
.num
, op
=True)
7 self
.uplink
.endburst(self
)
8 def _send(self
, line
, **kwargs
):
9 self
.uplink
.send(line
, self
.num
, **kwargs
)
10 def gotmsg(self
, msg
, source
, target
):
11 self
._send
("P #p10 :<%(fromnum)s> %(msg)s", fromnum
=source
, msg
=msg
)