mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +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):
|
def acronym(self, irc, msg, args):
|
||||||
"""<acronym>
|
"""<acronym>
|
||||||
|
|
||||||
Displays the first 5 acronym matches from acronymfinder.com
|
Displays the first acronym matches from acronymfinder.com
|
||||||
"""
|
"""
|
||||||
acronym = privmsgs.getArgs(args)
|
acronym = privmsgs.getArgs(args)
|
||||||
try:
|
try:
|
||||||
@ -321,8 +321,9 @@ class Http(callbacks.Privmsg):
|
|||||||
if len(defs) == 0:
|
if len(defs) == 0:
|
||||||
irc.reply(msg, 'No definitions found.')
|
irc.reply(msg, 'No definitions found.')
|
||||||
else:
|
else:
|
||||||
s = ircutils.privmsgPayload([repr(s.strip()) for s in defs[1:-1]])
|
s = ircutils.privmsgPayload([repr(s.strip()) for s in defs[1:-1]],
|
||||||
irc.reply(msg, '%s could be %s' % (acronym, s)
|
'," or "')
|
||||||
|
irc.reply(msg, '%s could be "%s"' % (acronym, s)
|
||||||
|
|
||||||
_netcraftre = re.compile(r'whatos text -->(.*?)<a href="/up/acc', re.S)
|
_netcraftre = re.compile(r'whatos text -->(.*?)<a href="/up/acc', re.S)
|
||||||
def netcraft(self, irc, msg, args):
|
def netcraft(self, irc, msg, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user