1 # automatically auths with Q on quakenet servers
5 def help(plugin, topic="")
8 return "quath plugin: handles Q auths. topics set, identify"
10 return "nickserv set <user> <passwd>: set the Q user and password and use it to identify in future"
12 return "quath identify: identify with Q (if user and auth are set)"
18 # this plugin only wants to store strings!
30 @registry['quakenet.user'] = params[:nick]
31 @registry['quakenet.auth'] = params[:passwd]
38 def identify(m, params)
39 if @registry.has_key?('quakenet.user') && @registry.has_key?('quakenet.auth')
40 debug "authing with Q using #{@registry['quakenet.user']} #{@registry['quakenet.auth']}"
41 @bot.sendmsg "PRIVMSG", "Q@CServe.quakenet.org", "auth #{@registry['quakenet.user']} #{@registry['quakenet.auth']}"
44 m.reply "not configured, try 'qauth set :nick :passwd'" if m
50 plugin.map 'qauth set :nick :passwd', :action => "set"
51 plugin.map 'quath identify', :action => "identify"