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:
parent
9a020e1dcb
commit
43dae060eb
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user