Check if user is 'voiced' or 'op' in IRC channel using twisted

I'm writing an IRC bot using twisted python, and some actions should only be available to channel operators. How do I determine the 'user level' of a user in a channel using twisteds IRCClient?


One way to discover if a user has voice or op is to look at their name in a names listing. See How to use Twisted to get an IRC channel's user list for details on how to do that. Other solutions, using WHO or WHOIS, will take a similar form.


如果您的机器人有权这样做,您还可以使用频道访问列表。

链接地址: http://www.djcxy.com/p/53450.html

上一篇: 登录时的服务器密码

下一篇: 使用双绞线检查用户是否在IRC频道中“浊音”或“操作”