def handle_setemail(bot, ievent): """ user-setemail <name> .. set email of name """ try: name, email = ievent.args except ValueError: ievent.missing('<name> <email>') return if not users.exist(name): ievent.reply("can't find user %s" % name) return users.setemail(name, email) ievent.reply('email set')
bot.userhosts['test'] = 'test@test' bot.server = 'localhost' bot.port = 6667 fleet.addbot(bot) plugins.regplugins() time.sleep(5) try: users.add('test', [ 'test@test', ], ['OPER', 'USER', 'QUOTE', 'MAIL']) except Exception, ex: pass try: users.setemail('test', '*****@*****.**') except Exception, ex: pass def gendoc(f): base = os.path.basename(f).replace('.py', '') print '=' * (len(base) + 2) print ' %s ' % base.upper() print '=' * (len(base) + 2) print "| \n" print "about" print "-----" print "| \n" try: author = plugins.plugs[base].__author__
bot.channels.setdefault("#dunkbots", {}) bot.userhosts["dunker"] = "*****@*****.**" bot.userhosts["test"] = "test@test" bot.server = "localhost" bot.port = 6667 fleet.addbot(bot) plugins.regplugins() time.sleep(5) try: users.add("test", ["test@test"], ["OPER", "USER", "QUOTE", "MAIL"]) except Exception, ex: pass try: users.setemail("test", "*****@*****.**") except Exception, ex: pass def gendoc(f): base = os.path.basename(f).replace(".py", "") print "=" * (len(base) + 2) print " %s " % base.upper() print "=" * (len(base) + 2) print "| \n" print "about" print "-----" print "| \n" try: author = plugins.plugs[base].__author__