如何使用 Twisted 列出 IRC 服务器的频道
我想在登录 IRC 服务器时列出服务器的频道。我怎样才能做到这一点?
我尝试重写 signedOn 方法:
def signedOn(self):
print "connected to the server..."
self.sendLine("/LIST")
但随后我不知道是否从该请求中得到一些信息以及如何获取响应。
I would like to list the server's channels when I log into an IRC sevrer. How can I do that?
I tried to override the signedOn method:
def signedOn(self):
print "connected to the server..."
self.sendLine("/LIST")
but then I don't know if I get something back from this request and how to get the response.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的一点是,让我们在我刚刚创建的票证上提交一个补丁来添加此功能。
http://twistedmatrix.com/trac/ticket/4929
直到然后
sendLine( 'LIST')
应该可以Good point lets submit a patch on a ticket I just created to have this feature added.
http://twistedmatrix.com/trac/ticket/4929
Till then just
sendLine('LIST')
should work