Change /buttonkick to /buttonwarn

(Also keeping /buttonkick as an alias) Makes the command much more understandable.
This commit is contained in:
Irraquated
2015-07-05 19:26:22 +10:00
committed by irraquated
parent 527eaaceb6
commit f6cc7fa412

View File

@@ -828,9 +828,10 @@
return false;
case 'buttonkick':
case 'buttonwarn':
var self = this;
app.addPopupPrompt("Why do you wish to kick this user?", "Kick user", function(reason) {
self.send('/kick ' + toName(target) + ', ' + (reason || ''));
app.addPopupPrompt("Why do you wish to warn this user?", "Warn user", function(reason) {
self.send('/warn ' + toName(target) + ', ' + (reason || ''));
});
return false;