Changed acronym to allow as many acronyms as possible.

This commit is contained in:
Jeremy Fincher 2003-06-02 06:46:40 +00:00
parent b6e9d10a96
commit 0f018d0221

View File

@ -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):