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:
Jeremy Fincher 2005-02-09 00:32:00 +00:00
parent d8b40a121a
commit 203491e7c3

View File

@ -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: