summaryrefslogtreecommitdiffstats
path: root/wmd/actions/google.py
diff options
context:
space:
mode:
authorjason2012-07-21 23:35:42 -0600
committerjason2012-07-21 23:35:42 -0600
commitc7c32ccf3b6e70704d8dae7dba9fa2c32d17b87f (patch)
treed7e5596e7a4e8c992b1bf4cf9359ce82fb565a2a /wmd/actions/google.py
parent6a9a90b6cbe3396462a4dc3996d890a5c41bf7b8 (diff)
downloadwarmachine-c7c32ccf3b6e70704d8dae7dba9fa2c32d17b87f.tar.gz
warmachine-c7c32ccf3b6e70704d8dae7dba9fa2c32d17b87f.zip
If someone privmsg searches google with warmachine, privmsg them the result.
Diffstat (limited to 'wmd/actions/google.py')
-rw-r--r--wmd/actions/google.py2
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:])