mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Changed acronym to allow as many acronyms as possible.
This commit is contained in:
parent
b6e9d10a96
commit
0f018d0221
@ -303,7 +303,7 @@ class Http(callbacks.Privmsg):
|
||||
def acronym(self, irc, msg, args):
|
||||
"""<acronym>
|
||||
|
||||
Displays the first 5 acronym matches from acronymfinder.com
|
||||
Displays the first acronym matches from acronymfinder.com
|
||||
"""
|
||||
acronym = privmsgs.getArgs(args)
|
||||
try:
|
||||
@ -321,8 +321,9 @@ class Http(callbacks.Privmsg):
|
||||
if len(defs) == 0:
|
||||
irc.reply(msg, 'No definitions found.')
|
||||
else:
|
||||
s = ircutils.privmsgPayload([repr(s.strip()) for s in defs[1:-1]])
|
||||
irc.reply(msg, '%s could be %s' % (acronym, s)
|
||||
s = ircutils.privmsgPayload([repr(s.strip()) for s in defs[1:-1]],
|
||||
'," or "')
|
||||
irc.reply(msg, '%s could be "%s"' % (acronym, s)
|
||||
|
||||
_netcraftre = re.compile(r'whatos text -->(.*?)<a href="/up/acc', re.S)
|
||||
def netcraft(self, irc, msg, args):
|
||||
|
Loading…
Reference in New Issue
Block a user