ソースを参照

Fix borking of ACTION sedding

master
Thomas Mannay GitHub 7年前
コミット
ed99ca5c9d
1個のファイルの変更6行の追加2行の削除
  1. +6
    -2
      seddy.py

+ 6
- 2
seddy.py ファイルの表示

@@ -86,8 +86,12 @@ def notice(msg):
send.flush()

def privmsg(msg):
send.write('PRIVMSG ' + channel + ' :' +
''.join(c for c in msg if c.isprintable()) + '\r\n')
if msg[:7] == '\x01ACTION':
send.write('PRIVMSG ' + channel + ' :' + '\x01' +
''.join(c for c in msg if c.isprintable()) + '\x01\r\n')
else:
send.write('PRIVMSG ' + channel + ' :' +
''.join(c for c in msg if c.isprintable()) + '\r\n')
send.flush()

if __name__ == "__main__":


読み込み中…
キャンセル
保存