def nickof(self, irc, bot): info = _svc.get_info() if(bot and bot in info.keys()): irc.reply("%s has nick %s"%(bot, info[bot])) else: irc.reply("I dunno. Try %s"%str(info.keys()))
def nick_change(self, irc, nick, old_nick): svcinfo = _svc.get_info() # opserv pm #theops that someones nick changed irc.send_target_privmsg(svcinfo["opserv"], "#theops", "%s changed nick to %s"%(old_nick, nick) )