开发者

How do I list IRC server's channels using Twisted

开发者 https://www.devze.com 2023-02-15 11:17 出处:网络
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:

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

精彩评论

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