- def new_user(self, irc, nick, ident, hostname, info):
- # we may filter on all the user fields, but we only pass the nick because
- # the plugin can get the rest itself
- return self.plugins.callhandler("new_user", irc, [nick, ident, hostname, info], [nick])
+ def new_user(self, user):
+ for plugin in self.newplugins:
+ if plugin.new_user(user):
+ return 1
+ return 0
+
+ def nick_change(self, user, oldnick):
+ for plugin in self.newplugins:
+ plugin.nick_change(user, oldnick)
+
+ def del_user(self, user, killer, why):
+ for plugin in self.newplugins:
+ plugin.del_user(user, killer, why)
+
+ def topic(self, who, chan, old_topic):
+ for plugin in self.newplugins:
+ if plugin.topic(who, chan, old_topic):
+ return 1
+ return 0