mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Fix for ugly documentation.
This commit is contained in:
parent
027b73a1df
commit
b876d792e0
@ -78,9 +78,12 @@ conf.registerGlobalValue(conf.supybot.plugins.BadWords,'requireWordBoundaries',
|
|||||||
false."""))
|
false."""))
|
||||||
|
|
||||||
class String256(registry.String):
|
class String256(registry.String):
|
||||||
def setValue(self, s):
|
def __call__(self):
|
||||||
multiplier = int(math.ceil(1024/len(s)))
|
s = registry.String.__call__(self)
|
||||||
registry.String.setValue(self, s*multiplier)
|
return s * (1024/len(s))
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.value
|
||||||
|
|
||||||
conf.registerGlobalValue(conf.supybot.plugins.BadWords, 'nastyChars',
|
conf.registerGlobalValue(conf.supybot.plugins.BadWords, 'nastyChars',
|
||||||
String256('!@#&', """Determines what characters will replace bad words; a
|
String256('!@#&', """Determines what characters will replace bad words; a
|
||||||
|
Loading…
Reference in New Issue
Block a user