From e0bd5b4c964dd6db325f4582aa1b73c34575db4b Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 9 Sep 2011 22:42:35 +0200 Subject: //Reaktor/IRC: * > ALL --- Reaktor/IRC/bot2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Reaktor/IRC') diff --git a/Reaktor/IRC/bot2.py b/Reaktor/IRC/bot2.py index f8273ffa..326dd8f5 100755 --- a/Reaktor/IRC/bot2.py +++ b/Reaktor/IRC/bot2.py @@ -33,13 +33,13 @@ class IRCBot(SimpleIRCClient): try: _, _handle, _command, _argument, _ = re.split( - '^(\w+):\s*(\w+)(?:\s+(.*))?$', event.arguments()[0]) + '^(\w+|\*):\s*(\w+)(?:\s+(.*))?$', event.arguments()[0]) except ValueError, error: if re.search(_nickname, event.arguments()[0]): PRIVMSG(self.target, 'I\'m so famous') return # ignore - if _handle == _nickname or _handle == 'ALL': + if _handle == _nickname or _handle == '*': from os.path import realpath, dirname, join from subprocess import Popen as popen, PIPE @@ -77,7 +77,7 @@ class IRCBot(SimpleIRCClient): ME(self.target, 'mimimi') else: - if _handle != 'ALL': + if _handle != '*': PRIVMSG(self.target, _from + ': you are made of stupid') def on_welcome(self, connection, event): -- cgit v1.2.3