mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Update kicked message to use reason.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@9037 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -752,7 +752,13 @@ public final class GroupChatRoom extends ChatRoom {
|
||||
|
||||
chat.addUserStatusListener(new DefaultUserStatusListener() {
|
||||
public void kicked(String s, String reason) {
|
||||
insertText(Res.getString("message.your.kicked", s));
|
||||
if (ModelUtil.hasLength(reason)) {
|
||||
insertText(reason);
|
||||
}
|
||||
else {
|
||||
insertText(Res.getString("message.your.kicked", s));
|
||||
}
|
||||
|
||||
getChatInputEditor().setEnabled(false);
|
||||
getSplitPane().setRightComponent(null);
|
||||
leaveChatRoom();
|
||||
|
||||
Reference in New Issue
Block a user