diff options
| author | tv <tv@xso> | 2011-09-06 15:46:43 +0200 | 
|---|---|---|
| committer | tv <tv@xso> | 2011-09-06 15:46:43 +0200 | 
| commit | 738963ab05341f939c0e1c2afe7478e013e25561 (patch) | |
| tree | 7425b2b711ef33a88c3ca5c98d841790bff29af5 /IRC | |
| parent | 265fe5fb0c80c7de5bc111b31e491fea0bdbea45 (diff) | |
//Reaktor/IRC: be famous only sometimes
Diffstat (limited to 'IRC')
| -rwxr-xr-x | IRC/bot2.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/IRC/bot2.py b/IRC/bot2.py index 092d34b..0279c0f 100755 --- a/IRC/bot2.py +++ b/IRC/bot2.py @@ -35,7 +35,8 @@ class IRCBot(SimpleIRCClient):        _, _handle, _command, _argument, _ = re.split(            '^(\w+):\s*(\w+)(?:\s+(.*))?$', event.arguments()[0])      except ValueError, error: -      PRIVMSG(self.target, 'I\'m so famous') +      if re.search(_nickname, event.arguments()[0]): +        PRIVMSG(self.target, 'I\'m so famous')        return # ignore      if _handle == _nickname or _handle == 'ALL': @@ -57,7 +58,7 @@ class IRCBot(SimpleIRCClient):            p = popen([command], stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env)          except OSError, error:            ME(self.target, 'is made of stupid') -          print('OSError@%s: %s' % (argv, error)) +          print('OSError@%s: %s' % (command, error))            return          stdout, stderr = [ x[:len(x)-1] for x in | 
