开发者

How do I list IRC server's channels using Twisted

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.sendLi开发者_Go百科ne("/LIST")

but then I don't know if I get something back from this request and how to get the response.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜