command can use nickserv [#421]

This commit is contained in:
reality 2013-04-23 19:07:23 +00:00 committed by Douglas Gardner
parent 301178cc81
commit 2e60f4e600

View File

@ -18,6 +18,7 @@ var nickserv = function(dbot) {
statusRegex = this.config.servers[event.server].matcher, statusRegex = this.config.servers[event.server].matcher,
acceptableState = this.config.servers[event.server].acceptableState; acceptableState = this.config.servers[event.server].acceptableState;
if(event.user == nickserv) { if(event.user == nickserv) {
var info = event.params.match(statusRegex); var info = event.params.match(statusRegex);
if(info && _.has(this.authStack, event.server)) { if(info && _.has(this.authStack, event.server)) {