diff --git a/OperUp/plugin.py b/OperUp/plugin.py index b3db42e..9e6edfa 100644 --- a/OperUp/plugin.py +++ b/OperUp/plugin.py @@ -46,8 +46,9 @@ class OperUp(callbacks.Plugin): """Simple plugin that allows Supybot to oper up on configured networks, on connect and manually.""" - def do005(self, irc, msg): - """Oper up on connect.""" + def do376(self, irc, msg): + """Oper up on connect. This listens on numerics 376 (end of MOTD) and + 422 (MOTD not found).""" if not self.registryValue('autoOper'): return if irc.network in self.registryValue('operNets'): @@ -60,6 +61,8 @@ class OperUp(callbacks.Plugin): self.log.warning("OperUp: Bot is set to oper on network %s, but" " operName and/or operPass are not defined!", irc.network) + do377 = do422 = do376 + def do381(self, irc, msg): self.log.info("OperUp: Received 381 (successfully opered up) from " "network %s.", irc.network)