clean up action method in irc.py
parent
1d461a8484
commit
74713798f9
5
irc.py
5
irc.py
|
@ -200,9 +200,8 @@ class Bot(asynchat.async_chat):
|
||||||
self.sending.release()
|
self.sending.release()
|
||||||
|
|
||||||
def action(self, recipient, text):
|
def action(self, recipient, text):
|
||||||
text = "ACTION %s" % text
|
text = "\x01ACTION {0}\x01".format(text)
|
||||||
textu = chr(1) + text + chr(1)
|
return self.msg(recipient, text)
|
||||||
return self.msg(recipient, textu)
|
|
||||||
|
|
||||||
def notice(self, dest, text):
|
def notice(self, dest, text):
|
||||||
self.write(('NOTICE', dest), text)
|
self.write(('NOTICE', dest), text)
|
||||||
|
|
Loading…
Reference in New Issue