diff options
Diffstat (limited to 'passiveactions/autoop.py')
| -rw-r--r-- | passiveactions/autoop.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/passiveactions/autoop.py b/passiveactions/autoop.py index 45ae9e4..5724df5 100644 --- a/passiveactions/autoop.py +++ b/passiveactions/autoop.py | |||
| @@ -5,11 +5,13 @@ class autoop: | |||
| 5 | 5 | ||
| 6 | def getAction(self, data, users): | 6 | def getAction(self, data, users): |
| 7 | try: | 7 | try: |
| 8 | input = data.split() | 8 | if data.command == 'JOIN': |
| 9 | if 'JOIN' in input[1]: | 9 | user = data.prefix[0:data.prefix.index('!')] |
| 10 | user = data[1:data.index('!')] | ||
| 11 | if user in users: | 10 | if user in users: |
| 12 | print "autoop" | 11 | print "autoop" |
| 13 | return 'MODE ' + input[2][1:] + ' +o ' + user | 12 | |
| 13 | if data.params[0] == ':': | ||
| 14 | data.params = data.params[1:] | ||
| 15 | return 'MODE ' + data.params + ' +o ' + user | ||
| 14 | except: | 16 | except: |
| 15 | return False | 17 | return False |