diff options
| author | tv <tv@xso> | 2011-09-09 22:42:35 +0200 | 
|---|---|---|
| committer | tv <tv@xso> | 2011-09-09 22:42:35 +0200 | 
| commit | 6b4f6b79379b8bc0bf401e162a5f867837df81fe (patch) | |
| tree | c5d2ca0581c9555c309cdde2de063c2ad9dd89a8 | |
| parent | 7d3a0c271fab627f7e0d9a0af265e121579ff88f (diff) | |
//Reaktor/IRC: * > ALL
| -rwxr-xr-x | IRC/bot2.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/IRC/bot2.py b/IRC/bot2.py index f8273ff..326dd8f 100755 --- a/IRC/bot2.py +++ b/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): | 
