SupyMisc: bugfix

This commit is contained in:
GLolol 2014-04-23 17:30:33 -07:00
parent aef7578f10
commit bdd6c6e471

View File

@ -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.)