Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/363.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python如何加入受密码保护的IRC通道_Python_Irc_Channel - Fatal编程技术网

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

在python中,加入受密码保护的IRC通道的正确语法是什么

通常的做法是:

socket.send("JOIN " +channel+ "\r\n")
从RFC 1459:

Command: JOIN
Parameters: <channel>{,<channel>} [<key>{,<key>}]
所以它是
“JOIN”+channel+“+key+”\r\n“

参考文献:


谢谢,我应该多看看RFC。我打字时忘记了CR,我的坏消息。
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.