From 37ca8f342ac5f8d2e8cb3161c9fa9c4ad2ab8357 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Thu, 25 Jun 2015 19:48:16 -0400 Subject: [PATCH] /part now gives a warning during active battles --- js/client-chat.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/client-chat.js b/js/client-chat.js index 68821d47a..0c2dd28b4 100644 --- a/js/client-chat.js +++ b/js/client-chat.js @@ -844,6 +844,11 @@ } return text; // Send the /join command through to the server. + case 'part': + case 'leave': + if (this.requestLeave && !this.requestLeave()) return false; + return text; + case 'avatar': var parts = target.split(','); var avatar = parseInt(parts[0], 10);