mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Forgot an import. Odd that this didn't show up in my testing with lambdabot.
This commit is contained in:
parent
a73348f962
commit
4c52ad680d
@ -43,6 +43,7 @@ import supybot.conf as conf
|
|||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
from supybot.commands import *
|
from supybot.commands import *
|
||||||
import supybot.plugins as plugins
|
import supybot.plugins as plugins
|
||||||
|
import supybot.ircutils as ircutils
|
||||||
import supybot.privmsgs as privmsgs
|
import supybot.privmsgs as privmsgs
|
||||||
import supybot.registry as registry
|
import supybot.registry as registry
|
||||||
import supybot.callbacks as callbacks
|
import supybot.callbacks as callbacks
|
||||||
@ -57,16 +58,13 @@ def configure(advanced):
|
|||||||
conf.registerPlugin('Quakenet', True)
|
conf.registerPlugin('Quakenet', True)
|
||||||
|
|
||||||
|
|
||||||
try:
|
class Password(registry.String):
|
||||||
Password
|
|
||||||
except NameError:
|
|
||||||
class Password(registry.String):
|
|
||||||
"""Value must be a string of 10 or fewer characters."""
|
"""Value must be a string of 10 or fewer characters."""
|
||||||
def setValue(self, s):
|
def setValue(self, s):
|
||||||
if len(s) > 10:
|
if len(s) > 10:
|
||||||
self.error()
|
self.error()
|
||||||
else:
|
else:
|
||||||
super(Password, self).setValue(s)
|
registry.String.setValue(self, s)
|
||||||
|
|
||||||
Quakenet = conf.registerPlugin('Quakenet')
|
Quakenet = conf.registerPlugin('Quakenet')
|
||||||
conf.registerGroup(Quakenet, 'Q')
|
conf.registerGroup(Quakenet, 'Q')
|
||||||
|
Loading…
Reference in New Issue
Block a user