Skip to content

Supybot Website

Sections
Personal tools
You are here: Home » Documentation » Supybot Help Center » FAQs » How do I find out channel modes?

How do I find out channel modes?

Document Actions
Up to table of contents
I want to know who's an op in a certain channel, or who's voiced, or what the modes on the channel are. How do I do that?

Everything you need is kept in a ChannelState object in an IrcState object in the Irc object your plugin is given. To see the ops in a given channel, for instance, you would do this:

  irc.state.channels['#channel'].ops

To see a dictionary mapping mode chars to values (if any), you would do this:

  irc.state.channels['#channel'].modes

From there, things should be self-evident.

This FAQ applies to: Any version.

Created by jemfinch
Last modified 02:21 March 11, 2005
News
Oops!
Jun 29, 2007 @ 16:24
We need a Supybot logo!
Jan 18, 2005 @ 03:59
Recent Plugin Releases
IdleRPG 1.1.2
Jun 13, 2008 @ 04:34
QGoogle 0.2.0
Apr 30, 2008 @ 12:13
QGoogle 0.1-r1
Apr 27, 2008 @ 08:25
Ompload 1.0
Apr 11, 2008 @ 22:08
Bunneh 1.0
Mar 21, 2008 @ 21:50
 
 

Powered by Plone

This site conforms to the following standards: