def help(plugin, topic="")
case topic
when ""
- return "quath plugin: handles Q auths. topics set, identify"
+ return "qauth plugin: handles Q auths. topics set, identify"
when "set"
- return "nickserv set <user> <passwd>: set the Q user and password and use it to identify in future"
+ return "qauth set <user> <passwd>: set the Q user and password and use it to identify in future"
when "identify"
- return "quath identify: identify with Q (if user and auth are set)"
+ return "qauth identify: identify with Q (if user and auth are set)"
end
end
end
def set(m, params)
- @registry['quakenet.user'] = params[:user]
+ @registry['quakenet.user'] = params[:nick]
@registry['quakenet.auth'] = params[:passwd]
m.okay
end
end
plugin = QPlugin.new
plugin.map 'qauth set :nick :passwd', :action => "set"
-plugin.map 'quath identify', :action => "identify"
+plugin.map 'qauth identify', :action => "identify"
+
+plugin.default_auth('*', false)