From 203491e7c37e9ed201dd1346a800d8d38d4d7b9f Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 9 Feb 2005 00:32:00 +0000 Subject: [PATCH] Don't load plugins whose name doesn't start with a capital. This fixed (or at least hides) the alwaysLoadImportant warning. --- plugins/Owner/plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/Owner/plugin.py b/plugins/Owner/plugin.py index af1f4fd63..8fb0bbaf5 100644 --- a/plugins/Owner/plugin.py +++ b/plugins/Owner/plugin.py @@ -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: