mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-07 03:53:41 -05:00
SupyMisc: bugfix
This commit is contained in:
parent
aef7578f10
commit
bdd6c6e471
@ -58,13 +58,13 @@ class SupyMisc(callbacks.Plugin):
|
|||||||
"""<num> <text>
|
"""<num> <text>
|
||||||
Returns <text> repeated <num> times. <num> must be a positive integer.
|
Returns <text> repeated <num> times. <num> must be a positive integer.
|
||||||
To keep leading and trailing spaces, it is recommended to quote the <text>
|
To keep leading and trailing spaces, it is recommended to quote the <text>
|
||||||
argument "like this". """
|
argument " like this ". """
|
||||||
max = self.registryValue("repeat.max")
|
max = self.registryValue("repeat.max")
|
||||||
if num <= max:
|
if num <= max:
|
||||||
irc.reply(text * num)
|
irc.reply(text * num)
|
||||||
else:
|
else:
|
||||||
irc.error("The <num> value given is too large. Current "
|
irc.error("The <num> value given is too large. Current "
|
||||||
"maximum: {}".format(max))
|
"maximum: {}".format(max), Raise=True)
|
||||||
repeat = wrap(repeat, ['positiveInt', 'text'])
|
repeat = wrap(repeat, ['positiveInt', 'text'])
|
||||||
|
|
||||||
### Generic informational commands (ident fetcher, channel counter, etc.)
|
### Generic informational commands (ident fetcher, channel counter, etc.)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user