Python如何加入受密码保护的IRC通道
在python中,加入受密码保护的IRC通道的正确语法是什么 通常的做法是:Python如何加入受密码保护的IRC通道,python,irc,channel,Python,Irc,Channel,在python中,加入受密码保护的IRC通道的正确语法是什么 通常的做法是: socket.send("JOIN " +channel+ "\r\n") 从RFC 1459: Command: JOIN Parameters: <channel>{,<channel>} [<key>{,<key>}] 所以它是“JOIN”+channel+“+key+”\r\n“ 参考文献: 谢谢,我应该多看看RFC。我打字时忘记了CR,我的坏消息。 IR
socket.send("JOIN " +channel+ "\r\n")
从RFC 1459:
Command: JOIN
Parameters: <channel>{,<channel>} [<key>{,<key>}]
所以它是“JOIN”+channel+“+key+”\r\n“
参考文献:
IRC messages are always lines of characters terminated with a CR-LF
(Carriage Return - Line Feed) pair, and these messages shall not
exceed 512 characters in length, counting all characters including
the trailing CR-LF.