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