add myself to the room member list when joining, fix /SAY

This commit is contained in:
Zlatin Balevsky
2019-11-12 11:40:28 +00:00
parent b1b2bcaef8
commit bcb7016202
2 changed files with 4 additions and 1 deletions

View File

@@ -49,6 +49,7 @@ class ChatRoomController {
JOptionPane.showMessageDialog(null, "$words is not a user command","Invalid Command", JOptionPane.ERROR_MESSAGE)
return
}
long now = System.currentTimeMillis()
if (command.action == ChatAction.SAY && command.payload.length() > 0) {
String toShow = DataHelper.formatTime(now) + " <" + model.core.me.getHumanReadableName() + "> "+command.payload
@@ -75,7 +76,6 @@ class ChatRoomController {
view.closeTab.call()
}
long now = System.currentTimeMillis()
UUID uuid = UUID.randomUUID()
String room = model.console ? ChatServer.CONSOLE : model.room

View File

@@ -17,4 +17,7 @@ class ChatRoomModel {
def members = []
void mvcGroupInit(Map<String,String> args) {
members.add(core.me)
}
}