diff options
| author | jason | 2006-08-09 15:33:25 +0000 |
|---|---|---|
| committer | jason | 2006-08-09 15:33:25 +0000 |
| commit | af820c55f401b0ea73ea91d71f8cb5bc5f06c3f1 (patch) | |
| tree | e0379c8ca77fd9480ad1719839687432d1434ff1 | |
| parent | b54f1c1bb0e896d7c89572f1a48f9ac0e0dde1f2 (diff) | |
| download | warmachine-af820c55f401b0ea73ea91d71f8cb5bc5f06c3f1.tar.gz warmachine-af820c55f401b0ea73ea91d71f8cb5bc5f06c3f1.zip | |
!!! spy.py is broken. I'm not exactly sure what it's supposed to do.
rootcheck.py bug fixes.
git-svn-id: svn://svn.zzq.org/warmachine/trunk@9 3ede8657-8418-0410-873f-eb3fb5a66eab
| -rw-r--r-- | passiveactions/rootcheck.py | 7 | ||||
| -rw-r--r-- | passiveactions/spy.py | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/passiveactions/rootcheck.py b/passiveactions/rootcheck.py index 0abe183..2f20fb2 100644 --- a/passiveactions/rootcheck.py +++ b/passiveactions/rootcheck.py | |||
| @@ -8,8 +8,11 @@ class rootcheck: | |||
| 8 | user = data.getUsername() | 8 | user = data.getUsername() |
| 9 | if 'JOIN' in data.command: | 9 | if 'JOIN' in data.command: |
| 10 | if 'root' in data.prefix: | 10 | if 'root' in data.prefix: |
| 11 | cmd = "PRIVMSG " + data.prefix + " :" + user +": Root?!?!?!!??!" | 11 | if data.params[0] == ':': |
| 12 | cmd += "\r\nKICK " + data.prefix + " " + user + " :Root + irc = kick" | 12 | data.params = data.params[1:] |
| 13 | |||
| 14 | cmd = "PRIVMSG " + data.params + " :" + user +": Root?!?!?!!??!" | ||
| 15 | cmd += "\r\nKICK " + data.params + " " + user + " :Root + irc = kick" | ||
| 13 | return cmd | 16 | return cmd |
| 14 | except: | 17 | except: |
| 15 | return False | 18 | return False |
diff --git a/passiveactions/spy.py b/passiveactions/spy.py index 9f815a0..56956ad 100644 --- a/passiveactions/spy.py +++ b/passiveactions/spy.py | |||
| @@ -12,8 +12,7 @@ class spy: | |||
| 12 | try: | 12 | try: |
| 13 | user = data.getUsername() | 13 | user = data.getUsername() |
| 14 | if user in spyusers: | 14 | if user in spyusers: |
| 15 | if user in data: | 15 | if user in data.params: |
| 16 | input = data.split() | ||
| 17 | words = "" | 16 | words = "" |
| 18 | for word in data.prefix.split(' ')[1:]: | 17 | for word in data.prefix.split(' ')[1:]: |
| 19 | words += ' ' + word | 18 | words += ' ' + word |