After Width: | Height: | Size: 111 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 111 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 21 KiB |
|
@ -19,7 +19,8 @@ class PPfunSocket extends EventEmitter {
|
|||
|
||||
this.on('sendChatMessage', (name, uid, msg, cid) => {
|
||||
if (this.isConnected) {
|
||||
const flag = this.getFlag(uid);
|
||||
const flag = (name.endsWith('berg') || name.endsWith('stein'))
|
||||
? 'il' : this.getFlag(uid);
|
||||
const pack = ['chat', name, uid, msg, flag, cid];
|
||||
this.ws.send(JSON.stringify(pack));
|
||||
}
|
||||
|
|