def auth_after_register(bot):
 if (bot.config.core.auth_method == u'nickserv'):
  nickserv_name = (bot.config.core.auth_target or u'NickServ')
  bot.msg(nickserv_name, (u'IDENTIFY %s' % bot.config.core.auth_password))
 elif (bot.config.core.auth_method == u'authserv'):
  account = bot.config.core.auth_username
  password = bot.config.core.auth_password
  bot.write((u'AUTHSERV auth', ((account + u' ') + password)))
 elif (bot.config.core.auth_method == u'Q'):
  account = bot.config.core.auth_username
  password = bot.config.core.auth_password
  bot.write((u'AUTH', ((account + u' ') + password)))

def auth_after_register ( bot ) : if ( bot . config . core . auth_method == u'nickserv' ) : nickserv_name = ( bot . config . core . auth_target or u'NickServ' ) bot . msg ( nickserv_name , ( u'IDENTIFY %s' % bot . config . core . auth_password ) ) elif ( bot . config . core . auth_method == u'authserv' ) : account = bot . config . core . auth_username password = bot . config . core . auth_password bot . write ( ( u'AUTHSERV auth' , ( ( account + u' ' ) + password ) ) ) elif ( bot . config . core . auth_method == u'Q' ) : account = bot . config . core . auth_username password = bot . config . core . auth_password bot . write ( ( u'AUTH' , ( ( account + u' ' ) + password ) ) )
do nickserv/authserv auth .