diff --git a/plugins/Http.py b/plugins/Http.py index ba225ab4a..7027c5dcf 100644 --- a/plugins/Http.py +++ b/plugins/Http.py @@ -208,11 +208,14 @@ class Http(callbacks.Privmsg): _cyborgRe = re.compile(r'

(.*?)

', re.I) def cyborg(self, irc, msg, args): - """ + """[] Returns a cyborg acronym for from . + If is not specified, uses that of the user. """ - name = privmsgs.getArgs(args) + name = privmsgs.getArgs(args, required=0, optional=1) + if not name: + name = msg.nick name = urllib.quote(name) url = 'http://www.cyborgname.com/cyborger.cgi?acronym=%s' % name html = webutils.getUrl(url)