Merge pull request #411 from Irraquated/patch-2

Change /buttonkick to /buttonwarn
This commit is contained in:
Guangcong Luo 2015-07-05 11:56:26 -05:00
commit 336d89ae53

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;