#include <channels.h>
Inheritance diagram for chanrec:
Public Methods | |
chanrec () | |
Creates a channel record and initialises it with default values. | |
virtual | ~chanrec () |
Public Attributes | |
char | name [CHANMAX] |
The channels name. | |
char | custom_modes [MAXMODES] |
Custom modes for the channel. | |
char | topic [MAXBUF] |
Channel topic. | |
time_t | created |
Creation time. | |
time_t | topicset |
Time topic was set. | |
char | setby [NICKMAX] |
The last user to set the topic. | |
long | limit |
Contains the channel user limit. | |
char | key [32] |
Contains the channel key. | |
short int | topiclock |
Nonzero if the mode +t is set. | |
short int | noexternal |
Nonzero if the mode +n is set. | |
short int | inviteonly |
Nonzero if the mode +i is set. | |
short int | moderated |
Nonzero if the mode +m is set. | |
short int | secret |
Nonzero if the mode +s is set. | |
short int | c_private |
Nonzero if the mode +p is set. | |
BanList | bans |
The list of all bans set on the channel. |
This class represents a channel, and contains its name, modes, time created, topic, topic set time, etc, and an instance of the BanList type.
Definition at line 90 of file channels.h.
|
Creates a channel record and initialises it with default values.
Definition at line 158 of file channels.h.
00159 { 00160 strcpy(name,""); 00161 strcpy(custom_modes,""); 00162 strcpy(topic,""); 00163 strcpy(setby,""); 00164 strcpy(key,""); 00165 created = topicset = limit = 0; 00166 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; 00167 } |
|
Definition at line 169 of file channels.h.
00169 { /* stub */ }
|
|
The list of all bans set on the channel.
Definition at line 154 of file channels.h. |
|
Nonzero if the mode +p is set. This value cannot be set at the same time as chanrec::secret Definition at line 150 of file channels.h. |
|
Creation time.
Definition at line 106 of file channels.h. |
|
Custom modes for the channel. Plugins may use this field in any way they see fit. Definition at line 99 of file channels.h. |
|
Nonzero if the mode +i is set.
Definition at line 136 of file channels.h. |
|
Contains the channel key. If this value is an empty string, there is no channel key in place. Definition at line 124 of file channels.h. |
|
Contains the channel user limit. If this value is zero, there is no limit in place. Definition at line 119 of file channels.h. |
|
Nonzero if the mode +m is set.
Definition at line 140 of file channels.h. |
|
The channels name.
Definition at line 95 of file channels.h. |
|
Nonzero if the mode +n is set.
Definition at line 132 of file channels.h. |
|
Nonzero if the mode +s is set. This value cannot be set at the same time as chanrec::c_private Definition at line 145 of file channels.h. |
|
The last user to set the topic. If this member is an empty string, no topic was ever set. Definition at line 114 of file channels.h. |
|
Channel topic. If this is an empty string, no channel topic is set. Definition at line 103 of file channels.h. |
|
Nonzero if the mode +t is set.
Definition at line 128 of file channels.h. |
|
Time topic was set. If no topic was ever set, this will be equal to chanrec::created Definition at line 110 of file channels.h. |