mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-06 13:39:48 -05:00
Merge pull request #411 from Irraquated/patch-2
Change /buttonkick to /buttonwarn
This commit is contained in:
commit
336d89ae53
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user