From f6cc7fa412536d54cb43cb297b6037438ea28ce6 Mon Sep 17 00:00:00 2001 From: Irraquated Date: Sun, 5 Jul 2015 19:26:22 +1000 Subject: [PATCH] Change /buttonkick to /buttonwarn (Also keeping /buttonkick as an alias) Makes the command much more understandable. --- js/client-chat.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/client-chat.js b/js/client-chat.js index ccf9d153c..7de395689 100644 --- a/js/client-chat.js +++ b/js/client-chat.js @@ -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;