add myself to the room member list when joining, fix /SAY
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -17,4 +17,7 @@ class ChatRoomModel {
|
||||
|
||||
def members = []
|
||||
|
||||
void mvcGroupInit(Map<String,String> args) {
|
||||
members.add(core.me)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user