]>
jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - Classes/class-cmodes.php
4 * A set of reference lists
7 public static $grouping =
9 "Join restrictions"=>"kliRzOL",
10 "Message restrictions"=>"cSmMnGT",
11 "Anti-flood and other restrictions"=>"FftCNKVQ",
15 public static $cmodes =
19 "description" => "Marks someone as channel admin (&)",
24 "description" => "Marks a ban from a channel",
25 "requires" => "HalfOp"
28 "name" => "No colors",
29 "description" => "Block messages containing mIRC color codes",
30 "requires" => "Operator"
33 "name" => "Delay Join",
34 "description" => "Indicates there are invisible users left over due to unsetting 'D'",
35 "requires" => "Server"
38 "name" => "Ban Exemption",
39 "description" => "Marks an exemption from channel bans",
40 "requires" => "HalfOp"
43 "name" => "Flood Protection",
44 "description" => "Implements channel flood protection",
45 "requires" => "Operator"
49 "description" => "Marks someone as channel halfop (%)",
50 "requires" => "Operator"
53 "name" => "Invite Only",
54 "description" => "Requires an invitation to join",
55 "requires" => "HalfOp"
59 "description" => "Requires a key/password to join",
60 "requires" => "HalfOp"
64 "description" => "Limits a channel to a specific amount of users",
65 "requires" => "HalfOp"
68 "name" => "Moderation",
69 "description" => "Prevents non-voiced users from speaking in a channel",
70 "requires" => "HalfOp"
73 "name" => "No External Messages",
74 "description" => "Messages cannot be sent to the channel from outside it",
75 "requires" => "HalfOp"
79 "description" => "Marks someone as channel operator (@)",
80 "requires" => "Operator"
84 "description" => "Prevents the channel from showing up in <code>/WHOIS</code> outputs and is replaces with \"*\" in <code>/LIST</code> outputs",
85 "requires" => "Operator"
89 "description" => "Marks someone as channel owner (~)",
93 "name" => "Registered",
94 "description" => "Channel has been registered to an account",
95 "requires" => "Server"
99 "description" => "Prevents the channel from showing up in <code>/WHOIS</code> and <code>/LIST</code> outputs",
100 "requires" => "Operator"
104 "description" => "Only HalfOps and above may set the topic.",
105 "requires" => "HalfOp"
109 "description" => "Marks someone as voiced in the channel (+)",
110 "requires" => "HalfOp"
113 "name" => "Secure Only",
114 "description" => "Only users using a secure connection may join this channel.",
115 "requires" => "Operator"
118 "name" => "No CTCPs",
119 "description" => "CTCP messages are not allowed on the channel.",
120 "requires" => "Operator"
123 "name" => "Delay Join",
124 "description" => "Delay showing joins until someone actually speaks.",
125 "requires" => "Operator"
128 "name" => "Flood Profile",
129 "description" => "Uses a Flood Profile to easily apply flood protection mechanisms",
130 "requires" => "Operator"
134 "description" => "Filters out all Bad words in messages with \"<censored></pre>\".",
135 "requires" => "Operator"
139 "description" => "Record channel history with specified maximums.",
140 "requires" => "Operator"
143 "name" => "Invitation",
144 "description" => "Marks an inviation to a channel.",
145 "requires" => "HalfOp"
148 "name" => "No Knock",
149 "description" => "Users may not knock on this channel.",
150 "requires" => "HalfOp"
154 "description" => "Link to another channel when unable to join",
155 "requires" => "Operator"
158 "name" => "Auth Moderated",
159 "description" => "Only users who have voice or are authenticated may talk in this channel.",
160 "requires" => "HalfOp"
163 "name" => "No Nick Changes",
164 "description" => "Nickname changes are not permitted on the channel.",
165 "requires" => "HalfOp"
168 "name" => "IRCOps Only",
169 "description" => "Only IRC Operators may join this channel.",
170 "requires" => "IRC Operator"
173 "name" => "Permanent",
174 "description" => "This channel will exist even when nobody is inside.",
175 "requires" => "IRC Operator"
178 "name" => "No Kicks",
179 "description" => "Kicks are not allowed in this channel.",
180 "requires" => "Operator"
183 "name" => "Reg Only",
184 "description" => "Only registered/authenticated users may join the channel.",
185 "requires" => "Operator"
188 "name" => "Strip Color",
189 "description" => "All color is stripped from channel messages.",
190 "requires" => "IRC Operator"
193 "name" => "No Notices",
194 "description" => "Notices are not permitted on the channel.",
195 "requires" => "IRC Operator"
198 "name" => "No Invites",
199 "description" => "Users are not allowed to <code>/INVITE</code> others to the channel.",
200 "requires" => "IRC Operator"
203 "name" => "Is Secure",
204 "description" => "Indication that all users on the channel are on a Secure connection.",
205 "requires" => "Server"
209 static function lookup($mode)
211 return (isset(self
::$cmodes[$mode])) ? self
::$cmodes[$mode] :
213 'name' => "Unknown mode",
214 'description' => "Unknown mode +$mode",
215 'requires' => 'Unknown'
218 static function setmodes($modes)
221 if (is_array($modes))
223 self::$uplink = $modes;
226 else if (!strstr($modes,","))
228 else $g = split($g,",");