access control on the thingie whatsit

This commit is contained in:
reality 2013-12-19 18:51:49 +00:00
parent b0d41fb490
commit 4089fee13c

View File

@ -195,6 +195,8 @@ var reddit = function(dbot) {
}; };
this.commands['~addredditfeed'].regex = [/^~addredditfeed ([^ ]+) ([^ ]+) ([^ ]+)$/, 4]; this.commands['~addredditfeed'].regex = [/^~addredditfeed ([^ ]+) ([^ ]+) ([^ ]+)$/, 4];
this.commands['~rmredditfeed'].regex = [/^~rmredditfeed ([^ ]+) ([^ ]+)$/, 3]; this.commands['~rmredditfeed'].regex = [/^~rmredditfeed ([^ ]+) ([^ ]+)$/, 3];
this.commands['~addredditfeed'].access = 'moderator';
this.commands['~rmredditfeed'].access = 'moderator';
this.onLoad = function() { this.onLoad = function() {
this.internalAPI.reloadChannelFeeds(); this.internalAPI.reloadChannelFeeds();