mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Don't load plugins whose name doesn't start with a capital. This fixed (or at least hides) the alwaysLoadImportant warning.
This commit is contained in:
parent
d8b40a121a
commit
203491e7c3
@ -216,7 +216,9 @@ class Owner(callbacks.Privmsg):
|
||||
self.log.warning(s, name)
|
||||
load = True
|
||||
if load:
|
||||
if not irc.getCallback(name):
|
||||
# We don't load plugins that don't start with a capital
|
||||
# letter.
|
||||
if name[0].isupper() and not irc.getCallback(name):
|
||||
# This is debug because each log logs its beginning.
|
||||
self.log.debug('Loading %s.' % name)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user