Convert some 'text' to 'something'

This commit is contained in:
Jeremy Fincher 2004-11-30 13:58:50 +00:00
parent 12fa1096db
commit 2f3fa324f0
4 changed files with 11 additions and 8 deletions

View File

@ -337,7 +337,8 @@ class Bugzilla(callbacks.PrivmsgCommandAndRegexp):
(utils.nItems('bug', len(bugs)), utils.quoted(searchstr), (utils.nItems('bug', len(bugs)), utils.quoted(searchstr),
' AND '.join(keywords), utils.commaAndify(map(str, bugids))) ' AND '.join(keywords), utils.commaAndify(map(str, bugids)))
irc.reply(s) irc.reply(s)
search = wrap(search, [getopts({'keywords':'text'}), 'something', 'text']) search = wrap(search, [getopts({'keywords': 'something'}),
'something', 'text'])
def bug(self, irc, msg, args, name, number): def bug(self, irc, msg, args, name, number):
"""<abbreviation> <number> """<abbreviation> <number>

View File

@ -284,7 +284,8 @@ class Debian(callbacks.Privmsg,
else: else:
irc.reply(utils.commaAndify(packages)) irc.reply(utils.commaAndify(packages))
incoming = thread(wrap(incoming, incoming = thread(wrap(incoming,
[getopts({'regexp':'regexpMatcher', 'arch':'text'}), [getopts({'regexp': 'regexpMatcher',
'arch': 'something'}),
any('glob')])) any('glob')]))
_newpkgre = re.compile(r'<li><a href[^>]+>([^<]+)</a>') _newpkgre = re.compile(r'<li><a href[^>]+>([^<]+)</a>')

View File

@ -323,7 +323,8 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
bold = self.registryValue('bold', msg.args[0]) bold = self.registryValue('bold', msg.args[0])
max = self.registryValue('maximumResults', msg.args[0]) max = self.registryValue('maximumResults', msg.args[0])
irc.reply(self.formatData(data, bold=bold, max=max)) irc.reply(self.formatData(data, bold=bold, max=max))
google = wrap(google, [getopts({'language':'text', 'restrict':'text', google = wrap(google, [getopts({'language':'something',
'restrict':'something',
'notsafe':'', 'similar':''}), 'notsafe':'', 'similar':''}),
many('something')]) many('something')])
@ -357,8 +358,8 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
meta.searchTime, meta.searchTime,
categories and ' Categories include %s.' % categories) categories and ' Categories include %s.' % categories)
irc.reply(s) irc.reply(s)
metagoogle = wrap(metagoogle, [getopts({'language':'text', metagoogle = wrap(metagoogle, [getopts({'language':'something',
'restrict':'text', 'restrict':'something',
'notsafe':'', 'similar':''}), 'notsafe':'', 'similar':''}),
many('something')]) many('something')])

View File

@ -204,9 +204,9 @@ class URL(callbacks.PrivmsgCommandAndRegexp):
s = urls[0] s = urls[0]
irc.reply(s) irc.reply(s)
last = wrap(last, ['channeldb', last = wrap(last, ['channeldb',
getopts({'from': 'text', 'with': 'text', getopts({'from': 'something', 'with': 'something',
'near': 'text', 'proto': 'text', 'near': 'something', 'proto': 'something',
'nolimit': '', 'without': 'text',})]) 'nolimit': '', 'without': 'something',})])
Class = URL Class = URL