diff options
| author | jason | 2012-07-21 23:35:42 -0600 |
|---|---|---|
| committer | jason | 2012-07-21 23:35:42 -0600 |
| commit | c7c32ccf3b6e70704d8dae7dba9fa2c32d17b87f (patch) | |
| tree | d7e5596e7a4e8c992b1bf4cf9359ce82fb565a2a | |
| parent | 6a9a90b6cbe3396462a4dc3996d890a5c41bf7b8 (diff) | |
| download | warmachine-c7c32ccf3b6e70704d8dae7dba9fa2c32d17b87f.tar.gz warmachine-c7c32ccf3b6e70704d8dae7dba9fa2c32d17b87f.zip | |
If someone privmsg searches google with warmachine, privmsg them the result.
| -rw-r--r-- | wmd/actions/google.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wmd/actions/google.py b/wmd/actions/google.py index 39c2269..07e2398 100644 --- a/wmd/actions/google.py +++ b/wmd/actions/google.py | |||
| @@ -13,7 +13,7 @@ class GoogleSearch(Action): | |||
| 13 | args = obj_data.params.split(" ") | 13 | args = obj_data.params.split(" ") |
| 14 | channel = args[0] | 14 | channel = args[0] |
| 15 | if channel == settings.NICKNAME: | 15 | if channel == settings.NICKNAME: |
| 16 | return | 16 | channel = obj_data.get_username() |
| 17 | 17 | ||
| 18 | if "PRIVMSG" in obj_data.command and ":!google" in args[1].lower(): | 18 | if "PRIVMSG" in obj_data.command and ":!google" in args[1].lower(): |
| 19 | search_string = " ".join(args[2:]) | 19 | search_string = " ".join(args[2:]) |