mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Small style fixes.
This commit is contained in:
parent
63cb4b9e6e
commit
9ee20273f2
@ -77,11 +77,10 @@ class UrbanDict(callbacks.Privmsg):
|
|||||||
|
|
||||||
Returns the definition and usage of a random word from
|
Returns the definition and usage of a random word from
|
||||||
UrbanDictionary.com. The optional argument <phrase> specifies
|
UrbanDictionary.com. The optional argument <phrase> specifies
|
||||||
what phrase to define
|
what phrase to define; if not given, a random phrase will be provided.
|
||||||
"""
|
"""
|
||||||
phrase = '+'.join(privmsgs.getArgs(args, required=0).split())
|
if args:
|
||||||
if phrase:
|
phrase = 'define.php?term=%s' % '+'.join(args)
|
||||||
phrase = 'define.php?term=%s' % phrase
|
|
||||||
else:
|
else:
|
||||||
phrase = 'random.php'
|
phrase = 'random.php'
|
||||||
site = 'www.urbandictionary.com'
|
site = 'www.urbandictionary.com'
|
||||||
|
Loading…
Reference in New Issue
Block a user