]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/plugins/__init__.py
Fix for "whats the color" 8ball question formats
[irc/evilnet/x3.git] / src / plugins / __init__.py
index 4faa6e5a1886cd0b0960600ae3b93a2a14895b7c..abf4a5af081476d6ca81a44a20c6c0b251326d07 100644 (file)
@@ -8,6 +8,15 @@ class Plugin(object):
     def new_user(self, user):
         pass
 
     def new_user(self, user):
         pass
 
+    def nick_change(self, user, oldnick):
+        pass
+
+    def del_user(self, user, killer, why):
+        pass
+
+    def topic(self, who, chan, old_topic):
+        pass
+
 def load_path(path, prefix):
     mods = []
 
 def load_path(path, prefix):
     mods = []
 
@@ -43,6 +52,7 @@ def load():
     # for some reason this returns multiple instances of the same plugin types
     candidates = Plugin.__subclasses__()
     for plg in candidates:
     # for some reason this returns multiple instances of the same plugin types
     candidates = Plugin.__subclasses__()
     for plg in candidates:
-        plugins[plg.__name__] = plg()
+        if plg.__name__ not in plugins:
+            plugins[plg.__name__] = plg()
 
     return plugins.values()
 
     return plugins.values()