From 74713798f9c1c88a5a7e4936527575c3f049fd8e Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Wed, 30 May 2012 22:56:53 -0700 Subject: [PATCH] clean up action method in irc.py --- irc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/irc.py b/irc.py index 29a98c8..f830029 100755 --- a/irc.py +++ b/irc.py @@ -200,9 +200,8 @@ class Bot(asynchat.async_chat): self.sending.release() def action(self, recipient, text): - text = "ACTION %s" % text - textu = chr(1) + text + chr(1) - return self.msg(recipient, textu) + text = "\x01ACTION {0}\x01".format(text) + return self.msg(recipient, text) def notice(self, dest, text): self.write(('NOTICE', dest), text)