mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 15:53:11 -05:00
Change /buttonkick to /buttonwarn
(Also keeping /buttonkick as an alias) Makes the command much more understandable.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user