mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
Merge branch 'master' of https://github.com/reality/depressionbot
This commit is contained in:
commit
2db1174689
@ -10,7 +10,7 @@ var adminCommands = function(dbot) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'opme': function(data, params) {
|
'opme': function(data, params) {
|
||||||
dbot.instance.send('MODE #42 +o ', dbot.admin);
|
dbot.instance.send('MODE ' + params[1] + ' +o ', dbot.admin);
|
||||||
},
|
},
|
||||||
|
|
||||||
'part': function(data, params) {
|
'part': function(data, params) {
|
||||||
@ -80,6 +80,9 @@ var adminCommands = function(dbot) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
// These commands are implemented as their own listener so it can easily
|
||||||
|
// check whether the user is the admin, and so that the admin can't ban
|
||||||
|
// themselves and then not be able to rectify it...
|
||||||
'listener': function(data) {
|
'listener': function(data) {
|
||||||
if(data.channel == dbot.name) data.channel = data.user;
|
if(data.channel == dbot.name) data.channel = data.user;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user