浏览代码

Add sender name to messages forwarded through crosslink

wip
父节点
当前提交
0625631aae
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. +2
    -1
      .gitignore
  2. +2
    -1
      twisted/plugins/frncrosslink.py

+ 2
- 1
.gitignore 查看文件

@@ -7,4 +7,5 @@ sounds/*
*.sqlite3
*.shelve
dropin.cache
twistd.pid
*.pid
*.log

+ 2
- 1
twisted/plugins/frncrosslink.py 查看文件

@@ -39,10 +39,11 @@ class FRNCrosslinkClient(FRNClient):
def textMessageReceived(self, client, message, target):
global clients
if target == 'A':
msg = "[%s] %s" % (self.getClientName(client), message)
if client != self.clientId:
for _, _, _, factory in clients:
if factory != self.factory:
factory.connection.sendTextMessage('', message)
factory.connection.sendTextMessage('', msg)
else:
if message.startswith('!'):
cmd = message[1:]


正在加载...
取消
保存