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),
' AND '.join(keywords), utils.commaAndify(map(str, bugids)))
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):
"""<abbreviation> <number>

View File

@ -284,7 +284,8 @@ class Debian(callbacks.Privmsg,
else:
irc.reply(utils.commaAndify(packages))
incoming = thread(wrap(incoming,
[getopts({'regexp':'regexpMatcher', 'arch':'text'}),
[getopts({'regexp': 'regexpMatcher',
'arch': 'something'}),
any('glob')]))
_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])
max = self.registryValue('maximumResults', msg.args[0])
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':''}),
many('something')])
@ -357,8 +358,8 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
meta.searchTime,
categories and ' Categories include %s.' % categories)
irc.reply(s)
metagoogle = wrap(metagoogle, [getopts({'language':'text',
'restrict':'text',
metagoogle = wrap(metagoogle, [getopts({'language':'something',
'restrict':'something',
'notsafe':'', 'similar':''}),
many('something')])

View File

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