From e328ff1bbb0a24f389a60baa97d1f54a27a756fd Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Tue, 28 Apr 2009 22:10:11 -0600 Subject: [PATCH] gis doc --- plugins/gis.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/gis.py b/plugins/gis.py index 3f34391..3a1c0fc 100644 --- a/plugins/gis.py +++ b/plugins/gis.py @@ -6,6 +6,10 @@ import hook @hook.command def gis(inp): + '''.gis -- returns first google image result (safesearch off)''' + if not inp: + return gis.__doc__ + req_url = 'http://ajax.googleapis.com/ajax/services/search/images?' \ 'v=1.0&safe=off&q=' url = req_url + urllib.quote(inp, safe='')