mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +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)
|
self.log.warning(s, name)
|
||||||
load = True
|
load = True
|
||||||
if load:
|
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.
|
# This is debug because each log logs its beginning.
|
||||||
self.log.debug('Loading %s.' % name)
|
self.log.debug('Loading %s.' % name)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user