]> jfr.im git - z_archive/pyp10.git/blob - modules/q.py
Disallow access to Do by non-opers
[z_archive/pyp10.git] / modules / q.py
1 class Pseudo(object):
2 def __init__(self, uplink):
3 self.uplink = uplink
4 self.nick = 'Q'
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)