3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 12:12:35 +01:00

Restrict ~hostmask command to moderators and above.

This commit is contained in:
Scritches 2019-05-26 13:07:10 -04:00
parent 9a020e1dcb
commit 43dae060eb

View File

@ -94,6 +94,8 @@ var nickserv = function(dbot) {
} }
}; };
this.commands['~hostmask'].access = 'moderator';
this.listener = function(event) { this.listener = function(event) {
if(event.action == 'NOTICE') { if(event.action == 'NOTICE') {
var nickserv = dbot.config.servers[event.server].nickserv, var nickserv = dbot.config.servers[event.server].nickserv,