mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-06 01:24:05 +01:00
Convert some 'text' to 'something'
This commit is contained in:
parent
12fa1096db
commit
2f3fa324f0
@ -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>
|
||||
|
@ -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>')
|
||||
|
@ -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')])
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user