blib/lib/POE/Component/Server/IRC/Help.pm

filter: Statementstmt 26.2% 21 / 80 Branchbran 75.0% 3 / 4 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 9.3% 6 / 64 Podpod 100% 2 / 2 totaltotal 21.5% 33 / 153 CC 5 SCAR 7.7
CC
5
Cov
29%
topic
5.2
_admin
2.0
_away
2.0
CRAP 2.2
« blib/lib/POE/Component/Server/IRC/Common.pm ↑ Summary bin/pmkpasswd »
1 package POE::Component::Server::IRC::Help;
2 2 $POE::Component::Server::IRC::Help::VERSION = '1.66';
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
7 2 my $package = shift;
8 2 return bless [], $package;
9 }
10  
11 4 ▶sub topic {
Subroutine topic: called CC=5 SCAR=16.4
Pod documented
12 4 my $self = shift;
13 4 ▶ my $topic = shift || return;
Condition50%1/2
shift() || (return)
l!l
40
MC/DC0%0/1
shift() || (return)
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
14 4 my $lines = [];
15  
16 4 $topic = lc $topic;
17 4 my $method = '_' . $topic;
18 4 ▶ return unless eval { $self->can($method) };
Branch: 1 branch
BranchTrueFalseTotal
unless eval { do { $self->can($method) } } 1 3 4
19 3 push @$lines, $_ for split m!\n!, $self->$method;
20 3 ▶ return @$lines if wantarray;
Branch: 1 branch
BranchTrueFalseTotal
if wantarray 3 0 3
21 0 return $lines;
22 }
23  
24 1 ▶sub _accept {
Subroutine _accept: called CC=1 SCAR=0.0
25 return << 'EOT'
26 ACCEPT [parameter]
27  
28 ACCEPT allows you to control who can send you a NOTICE or PRIVMSG
29 while you have user mode +g enabled.
30  
31 For +g: /QUOTE ACCEPT <n!u@h> -- Add a permitted mask
32 /QUOTE ACCEPT -<n!u@h> -- Remove a permitted mask
33 /QUOTE ACCEPT * -- List the present permitted masks
34 /QUOTE ACCEPT -- List the present permitted masks
35 EOT
36 1 }
37  
38 0 ▶sub _admin {
Subroutine _admin: not called CC=1 SCAR=6.9
39 return << 'EOT'
40 ADMIN [servername/nickname]
41  
42 With no arguments, ADMIN shows the information that was set by the
43 administrator of the server. This information can take any form that
44 will fit in three lines of text but is usually a list of contacts
45 for the persons that run the server.
46  
47 With a second argument, the administrative information for the
48 specified server is displayed.
49  
50 See also: stats
51 EOT
52 0 }
53  
54 0 ▶sub _away {
Subroutine _away: not called CC=1 SCAR=6.9
55 return << 'EOT'
56 AWAY :[MSG]
57  
58 Without an argument, it will set you back. With an argument,
59 it will set you as AWAY with the specified message.
60 EOT
61 0 }
62  
63 0 ▶sub _close {
Subroutine _close: not called CC=1 SCAR=6.9
64 return << 'EOT'
65 CLOSE
66  
67 Close any connections from clients or servers who have
68 not fully registered yet.
69  
70 - Requires Oper Priv: close
71 EOT
72 0 }
73  
74 0 ▶sub _cmode {
Subroutine _cmode: not called CC=1 SCAR=6.9
75 return << 'EOT'
76 MODE <channel> <+|-><modes> [parameters]
77  
78 =-=-=-=-=-=-=-=-=-=-=
79 CHANNELMODES
80 =-=-=-=-=-=-=-=-=-=-=
81  
82 MODE - DESCRIPTION
83 ------------------------------------------------------------------------
84  
85 NO PARAMETERS:
86 --------------
87  
88 +c - 'No control codes'. Prevent users from sending messages containing
89 control codes to the channel
90  
91 +n - 'No external messages'. This will prevent any user who
92 isn't in the channel from sending messages to the channel.
93  
94 +t - 'Ops Topic'. This will prevent any user who isn't opped,
95 or half-opped (+o/+h) from setting a channel topic.
96  
97 +s - 'Secret'. This will prevent the channel from being shown
98 in a /whois, and in the channel list.
99  
100 +p - 'Paranoia'. Controls whether halfops may invite users
101 into a channel or whether they may kick other members of a
102 channel.
103  
104 +m - 'Moderated'. This will prevent any user who isn't opped,
105 half-opped or voiced (+o/+h/+v) from talking in the channel.
106  
107 +i - 'Invite only'. This will prevent anyone from joining your
108 channel who hasn't received an /invite or whose host isn't in
109 the +I list.
110  
111 +r - 'Registered'. Channel has been registered with ChanServ.
112 Can be set only by servers and services.
113  
114 +u - 'Hide bmasks'. Hides +b/+e/+I mode changes and lists to everyone
115 except channel ops, and half-ops (+o/+h).
116  
117 +C - 'No CTCPs'. Prevent users from sending CTCPs to the channel.
118  
119 +L - 'Large ban list'. Channel can make use of the extended ban list
120 limit. Can be set only by irc-operators, servers and services.
121  
122 +M - 'Modreg'. Unregistered/unidentified clients cannot send text to
123 the channel
124  
125 +N - 'No nick changes'. This will prevent any user who isn't opped or
126 half-opped (+o/+h) from changing their nick while in the channel.
127  
128 +O - 'IRCOps only'. This will prevent anyone who hasn't obtained
129 irc-operator status from joining your channel. Can be set only
130 by irc-operators, servers and services.
131  
132 +R - 'Registered only'. Only registered clients may join a channel
133 with that mode set
134  
135 +S - 'SSL only'. This will prevent anyone who isn't securely connected
136 via SSL/TLS from joining your channel.
137  
138 +T - 'No Notices'. This will prevent any user who isn't opped,
139 half-opped or voiced (+o/+h/+v) from sending channel notices.
140  
141  
142 WITH PARAMETERS:
143 ----------------
144  
145 +k - 'Key'. This will require users joining to know the key,
146 they must then use /join #channel KEY
147  
148 PARAMS: /mode #channel +k key
149  
150 +l - 'Limit'. This will prevent more than LIMIT number of people
151 in the channel at any time.
152  
153 PARAMS: /mode #channel +l limit
154  
155 +v - 'Voice'. This will allow a user to talk in a moderated (+m)
156 channel. Shown by the +nick flag.
157  
158 PARAMS: /mode #channel +vvvv nick1 nick2 nick3 nick4
159  
160 +h - 'Half-op'. This will allow a user to set all of the above
161 modes, (and some more below..), whilst stopping the user
162 from doing harm to the channel. Users who are +h CANNOT
163 kick opped (+o) users, or set modes +h/-h/+o/-o.
164  
165 They can perform all other modes, and can kick regular users.
166  
167 PARAMS: /mode #channel +hhhh nick1 nick2 nick3 nick4
168  
169 +o - 'Op'. This gives the user full control over the channel.
170 An opped user may op other users, set any mode, and
171 remove ops from whoever they want.
172  
173 PARAMS: /mode #channel +oooo nick1 nick2 nick3 nick4
174  
175 +b - 'Ban'. This will prevent a user from entering the channel,
176 based on a nick!ident@host match.
177  
178 PARAMS: /mode #channel +bbbb n!u@h1b n!u@h2b n!u@h3b n!u@h4
179  
180 +e - 'Exempt'. This will allow a user to join a channel even if
181 they are banned (+b), based on a nick!ident@host match.
182  
183 PARAMS: /mode #channel +eeee n!u@h1b n!u@h2b n!u@h3b n!u@h4
184  
185 +I - 'Invite Exempt'. This will allow a user to join an
186 invite-only (+i) channel, based on a nick!user@host match.
187  
188 PARAMS: /mode #channel +IIII n!u@h1b n!u@h2b n!u@h3b n!u@h4
189 EOT
190 0 }
191  
192 0 ▶sub _connect {
Subroutine _connect: not called CC=1 SCAR=6.9
193 return << 'EOT'
194 CONNECT <server_A> [port] [server_B]
195  
196 When [server_B] is used, CONNECT asks [server_B] to
197 connect to <server_A>.
198  
199 The [port] must be specified with [server_B], this is
200 usually 6667. To use the default port in the connect
201 block, you can use 0 as the port.
202  
203 When [server_B] is not used, CONNECT tries to connect
204 your server to <server_A>.
205  
206 When [port] is used, the connection will be attempted
207 to [port].
208 When [port] is not used, 6667 is used as a default,
209 unless the port is specified in the conf file.
210  
211 - Requires Oper Priv: connect
212 - Requires Oper Priv: connect:remote for servers not connected to you
213 EOT
214 0 }
215  
216 0 ▶sub _die {
Subroutine _die: not called CC=1 SCAR=6.9
217 return << 'EOT'
218 DIE <server.name>
219  
220 Terminates the IRC server.
221  
222 - Requires Oper Priv: die
223 EOT
224 0 }
225  
226 0 ▶sub _dline {
Subroutine _dline: not called CC=1 SCAR=6.9
227 return << 'EOT'
228 DLINE <time> <nick|ip> :[reason]
229  
230 <time> if present, gives number of minutes for DLINE
231  
232 Adds a DLINE which will deny any connections from the
233 IP address of the banned client. The banned client will
234 receive a message saying he/she is banned with reason [reason]
235  
236 In order to use <nick> rather than <ip>, <nick> must
237 be on your server.
238  
239 - Requires Oper Priv: dline
240 EOT
241 0 }
242  
243 0 ▶sub _etrace {
Subroutine _etrace: not called CC=1 SCAR=6.9
244 return << 'EOT'
245 ETRACE [nickname mask]
246  
247 The ETRACE command will display a list of locally connected users
248 in the following format:
249  
250 User/Oper class nickname username host ip gecos
251  
252 You can optionally give a parameter with nickname mask to limit
253 the output. Wildcards are allowed.
254 EOT
255 0 }
256  
257 0 ▶sub _hash {
Subroutine _hash: not called CC=1 SCAR=6.9
258 return << 'EOT'
259 HASH
260  
261 Shows the hash statistics.
262 EOT
263 0 }
264  
265 0 ▶sub _help {
Subroutine _help: not called CC=1 SCAR=6.9
266 return << 'EOT'
267 HELP [topic]
268  
269 HELP displays the contents of the help
270 file for topic requested. If no topic is
271 requested, it will perform the equivalent
272 to HELP index.
273 EOT
274 0 }
275  
276 2 ▶sub _index {
Subroutine _index: called CC=1 SCAR=0.0
277 return << 'EOT'
278 Available HELP topics:
279  
280 ACCEPT ADMIN AWAY CLOSE
281 CMODE CONNECT DIE DLINE
282 ETRACE HASH HELP INFO
283 INVITE ISON JOIN KICK
284 KILL KLINE KNOCK LINKS
285 LIST LOCOPS LUSERS MAP
286 MODULE MOTD NAMES NICK
287 NOTICE OPER PART
288 PASS PING PONG POST
289 PRIVMSG QUIT REHASH RESTART
290 RESV SET SQUIT STATS
291 TIME TOPIC TRACE UMODE
292 UNDLINE UNKLINE UNRESV UNXLINE
293 USER USERHOST VERSION WALLOPS
294 WHO WHOIS WHOWAS XLINE
295 EOT
296 2 }
297  
298 0 ▶sub _info {
Subroutine _info: not called CC=1 SCAR=6.9
299 return << 'EOT'
300 INFO [servername/nickname]
301  
302 INFO displays the copyright, list of authors and contributors
303 to ircd, and the server configuration (as defined in setup.h,
304 defaults.h, and ircd.conf).
305 EOT
306 0 }
307  
308 0 ▶sub _invite {
Subroutine _invite: not called CC=1 SCAR=6.9
309 return << 'EOT'
310 INVITE [ <nickname> <channel> ]
311  
312 INVITE sends a notice to the user that you have
313 asked him/her to come to the specified channel.
314 If used without parameters, it displays a list
315 of channels you're invited to.
316 EOT
317 0 }
318  
319 0 ▶sub _ison {
Subroutine _ison: not called CC=1 SCAR=6.9
320 return << 'EOT'
321 ISON <nick_A> [nick_B] :[nick_C] [nick_D]
322  
323 ISON will return a list of users who are present
324 on the network from the list that was passed in.
325  
326 This command is rarely used directly.
327 EOT
328 0 }
329  
330 0 ▶sub _join {
Subroutine _join: not called CC=1 SCAR=6.9
331 return << 'EOT'
332 JOIN <#channel1[,#channel2,#channel3...]> [<key>{,<key>}]
333  
334 The JOIN command allows you to enter a public chat area known as
335 a channel. You can join more than one channel at a time,
336 separating their names with commas (',').
337  
338 If the channel has a key set, the second argument must be
339 given to enter. This allows channels to be password protected.
340  
341 See also: part, list
342 EOT
343 0 }
344  
345 0 ▶sub _kick {
Subroutine _kick: not called CC=1 SCAR=6.9
346 return << 'EOT'
347 KICK <channel> <nick> :[reason]
348  
349 The KICK command will remove the specified user
350 from the specified channel, using the optional
351 reason. If reason is not specified, nickname
352 of the user issuing the KICK will be used as reason.
353  
354 You must be a channel operator or half-op to use this command.
355 EOT
356 0 }
357  
358 0 ▶sub _kill {
Subroutine _kill: not called CC=1 SCAR=6.9
359 return << 'EOT'
360 KILL <nick> :[reason]
361  
362 Disconnects user <nick> from the IRC server he/she
363 is connected to with reason [reason].
364  
365 - Requires Oper Priv: kill
366 - Requires Oper Priv: kill:remote for users not on your IRC server
367 EOT
368 0 }
369  
370 0 ▶sub _kline {
Subroutine _kline: not called CC=1 SCAR=6.9
371 return << 'EOT'
372 KLINE [time] <nick|user@host> :[reason]
373  
374 [time] if present, gives number of minutes for KLINE
375  
376 Adds a KLINE which will ban the specified user from
377 using that server. The banned client will receive a
378 message saying he/she is banned with reason [reason]
379  
380 KLINE user@ip.ip.ip.ip :[reason]
381 will kline the user at the unresolved ip.
382 ip.ip.ip.ip can be in CIDR form i.e. 192.168.0.0/24
383 or 192.168.0.* (which is converted to CIDR form internally)
384  
385 For a temporary KLINE, length of kline is given in
386 minutes as the first parameter [time] i.e.
387 KLINE 10 <nick|user@host> :cool off for 10 minutes
388  
389 KLINE <user@host> ON irc.server :[reason]
390 will kline the user on irc.server if irc.server accepts
391 remote klines.
392  
393 - Requires Oper Priv: kline
394 EOT
395 0 }
396  
397 0 ▶sub _knock {
Subroutine _knock: not called CC=1 SCAR=6.9
398 return << 'EOT'
399 KNOCK <channel>
400  
401 KNOCK requests access to a channel that
402 for some reason is not open.
403  
404 KNOCK cannot be used if you are banned, the
405 channel is +p, or it is open.
406 EOT
407 0 }
408  
409 0 ▶sub _links {
Subroutine _links: not called CC=1 SCAR=6.9
410 return << 'EOT'
411 LINKS [mask] [servername/nickname]
412  
413 LINKS shows a list of all servers linked to the host server.
414  
415 With a mask parameter, LINKS will just show servers matching
416 that parameter. With the remote server parameter, LINKS will
417 request the LINKS data from the remote server, matching the
418 mask given.
419  
420 The information provided by the LINKS command can be helpful
421 for determining the overall shape of the network in addition to
422 its size.
423  
424 NOTE: the links command employs an intensive process to generate
425 its output, so sparing use is recommended.
426  
427 See also: connect map squit
428 EOT
429 0 }
430  
431 0 ▶sub _list {
Subroutine _list: not called CC=1 SCAR=6.9
432 return << 'EOT'
433 LIST [options]
434  
435 Without any arguments, LIST will give an entire list of all
436 channels which are not set as secret (+s). The list will be in
437 the form:
438  
439 <#channel> <amount of users> :[modes] [topic]
440  
441 If you want to use a specific filter, you can pass one or more
442 options separated by commas (','). Recognized options are:
443 *mask* List channels matching *mask*
444 !*mask* List channels NOT matching *mask*
445 >num Show only channels which contain more than <num> users
446 <num Show only channels which contain less than <num> users
447 C>num Display channels created within last <num> minutes
448 C<num Display channels created earlier than <num> minutes ago
449 T>num Limit matches to those channels whose topics are older
450 than <num> minutes
451 T<num Limit matches to those channels whose topics have been
452 changed within last <num> minutes
453 T:mask Limit matches to those channels whose topics match the
454 given mask
455  
456 To stop a running LIST request, use /LIST command again.
457  
458 See also: join
459 EOT
460 0 }
461  
462 0 ▶sub _locops {
Subroutine _locops: not called CC=1 SCAR=6.9
463 return << 'EOT'
464 LOCOPS :<message>
465  
466 Sends a LOCOPS message of <message> to all
467 opers on local server who are umode +l
468  
469 - Requires Oper Priv: locops
470 EOT
471 0 }
472  
473 0 ▶sub _lusers {
Subroutine _lusers: not called CC=1 SCAR=6.9
474 return << 'EOT'
475 LUSERS [mask] [servername/nickname]
476  
477 LUSERS will display client count statistics
478 for the specified mask, or all users if a
479 mask was not specified. If a remote server
480 is specified, it will request the information
481 from that server.
482 EOT
483 0 }
484  
485 0 ▶sub _map {
Subroutine _map: not called CC=1 SCAR=6.9
486 return << 'EOT'
487 MAP
488  
489 Shows the network map.
490 EOT
491 0 }
492  
493 0 ▶sub _module {
Subroutine _module: not called CC=1 SCAR=6.9
494 return << 'EOT'
495 MODULE <option> [module name]
496  
497 <option> can be one of the following:
498 LIST - List the modules that are currently loaded into the
499 ircd, along with their address and version.
500 When a match string is provided, LIST only prints
501 modules with names matching the match string.
502  
503 LOAD - Loads a module into the ircd.
504 The optional path can be an absolute path
505 from / or from the IRCD_PREFIX
506 (ie modules/autoload/m_users.la)
507  
508 UNLOAD - Unload a module from the ircd.
509 Use just the module name, the path is not needed.
510 When a module is unloaded, all commands associated
511 with it are unloaded as well.
512  
513 RELOAD - Reloads all modules.
514 All modules are unloaded, then those in modules/autoload
515 are loaded. If "*" has been specified as module name,
516 all modules will be reloaded.
517  
518 - Requires Oper Priv: module
519 EOT
520 0 }
521  
522 0 ▶sub _motd {
Subroutine _motd: not called CC=1 SCAR=6.9
523 return << 'EOT'
524 MOTD [servername/nickname]
525  
526 MOTD will display the message of the day for the
527 server name specified, or the local server if there
528 was no parameter.
529 EOT
530 0 }
531  
532 0 ▶sub _names {
Subroutine _names: not called CC=1 SCAR=6.9
533 return << 'EOT'
534 NAMES <channel>
535  
536 Displays nicks on a specific channel, also respecting the +i flag of
537 each client. If the channel specified is a channel that the issuing
538 client is currently in, all nicks are listed in similar fashion to
539 when the user first joins a channel.
540  
541 See also: join
542 EOT
543 0 }
544  
545 0 ▶sub _nick {
Subroutine _nick: not called CC=1 SCAR=6.9
546 return << 'EOT'
547 NICK <nickname>
548  
549 When first connected to the IRC server, NICK is required to
550 set the client's nickname.
551  
552 NICK will also change the client's nickname once a connection
553 has been established.
554 EOT
555 0 }
556  
557 0 ▶sub _notice {
Subroutine _notice: not called CC=1 SCAR=6.9
558 return << 'EOT'
559 NOTICE <nick|channel> :message
560  
561 NOTICE will send a notice message to the
562 user or channel specified.
563  
564 NOTICE supports the following prefixes for sending
565 messages to specific clients in a channel:
566  
567 @ - channel operators only
568 % - channel operators and half-ops
569 + - operators, half-ops, and voiced users
570  
571 Two other targets are permitted:
572  
573 $$servermask - Send a message to a server or set of
574 servers
575 $#hostmask - Send a message to users matching the
576 hostmask specified.
577  
578 These two are operator only.
579  
580 The nick can be extended to fit into the following
581 syntax:
582  
583 username[%hostname]@servername
584  
585 This syntax (without the hostname) is used to securely
586 send a message to a service or a bot.
587 EOT
588 0 }
589  
590 0 ▶sub _oper {
Subroutine _oper: not called CC=1 SCAR=6.9
591 return << 'EOT'
592 OPER <name> <password>
593  
594 The OPER command requires two arguments to be given. The first
595 argument is the name of the operator as specified in the
596 configuration file. The second argument is the password for
597 the operator matching the name and host.
598 EOT
599 0 }
600  
601 0 ▶sub _part {
Subroutine _part: not called CC=1 SCAR=6.9
602 return << 'EOT'
603 PART <#channel1[,#channel2,#channel3...]> :[part message]
604  
605 PART requires at least a channel argument to be given. It will
606 exit the client from the specified channel.
607 You can part more than one channel at a time,
608 separating their names with commas (',').
609  
610 An optional part message may be given to be displayed to the
611 channel.
612  
613 See also: join
614 EOT
615 0 }
616  
617 0 ▶sub _pass {
Subroutine _pass: not called CC=1 SCAR=6.9
618 return << 'EOT'
619 PASS <password>
620  
621 PASS is used during registration to access
622 a password protected auth {} block.
623  
624 PASS is also used during server registration.
625 EOT
626 0 }
627  
628 0 ▶sub _ping {
Subroutine _ping: not called CC=1 SCAR=6.9
629 return << 'EOT'
630 PING <source> :<target>
631  
632 PING will request a PONG from the target. If a
633 user or operator issues this command, the source
634 will always be turned into the nick that issued
635 the PING.
636 EOT
637 0 }
638  
639 0 ▶sub _pong {
Subroutine _pong: not called CC=1 SCAR=6.9
640 return << 'EOT'
641 PONG <pinged-client> :<source-client>
642  
643 PONG is the response to a PING command. The
644 source client is the user or server that issued
645 the command, and the pinged client is the
646 user or server that received the PING.
647 EOT
648 0 }
649  
650 0 ▶sub _post {
Subroutine _post: not called CC=1 SCAR=6.9
651 return << 'EOT'
652 POST
653  
654 The POST command is used to help protect against
655 insecure HTTP proxies. Any proxy that sends a POST
656 command during registration will be exited.
657 EOT
658 0 }
659  
660 0 ▶sub _privmsg {
Subroutine _privmsg: not called CC=1 SCAR=6.9
661 return << 'EOT'
662 PRIVMSG <nick1|channel1[,nick2|channel2...]> :message
663  
664 PRIVMSG will send a standard message to the
665 user or channel specified.
666  
667 PRIVMSG supports the following prefixes for sending
668 messages to specific clients in a channel:
669  
670 @ - channel operators only
671 % - channel operators and half-ops
672 + - operators, half-ops, and voiced users
673  
674 Two other targets are permitted:
675  
676 $$servermask - Send a message to a server or set of
677 servers
678 $#hostmask - Send a message to users matching the
679 hostmask specified.
680  
681 These two are operator only.
682  
683 The nick can be extended to fit into the following
684 syntax:
685  
686 username[%hostname]@servername
687  
688 This syntax (without the hostname) is used to securely
689 send a message to a service or a bot.
690 EOT
691 0 }
692  
693 0 ▶sub _quit {
Subroutine _quit: not called CC=1 SCAR=6.9
694 return << 'EOT'
695 QUIT :[quit message]
696  
697 QUIT sends a message to the IRC server letting it know you would
698 like to disconnect. The quit message will be displayed to the
699 users in the channels you were in when you are disconnected.
700 EOT
701 0 }
702  
703 0 ▶sub _rehash {
Subroutine _rehash: not called CC=1 SCAR=6.9
704 return << 'EOT'
705 REHASH <option>
706  
707 <option> can be one of the following:
708 CONF - Re-read the server configuration file(s)
709 DNS - Re-read the /etc/resolv.conf file
710 MOTD - Re-read MOTD file(s)
711  
712 To REHASH on remote servers:
713 REHASH <server> <option>
714  
715 - Requires Oper Priv: rehash
716 - Requires Oper Priv: rehash:remote for REHASH on remote servers
717 EOT
718 0 }
719  
720 0 ▶sub _restart {
Subroutine _restart: not called CC=1 SCAR=6.9
721 return << 'EOT'
722 RESTART <server.name>
723  
724 Restarts the IRC server.
725  
726 - Requires Oper Priv: restart
727 EOT
728 0 }
729  
730 0 ▶sub _resv {
Subroutine _resv: not called CC=1 SCAR=6.9
731 return << 'EOT'
732 RESV <channel|nick> :<reason>
733  
734 -- RESV a channel or nick
735 Will create a resv for the given channel/nick, stopping
736 local users from joining the channel, or using the
737 nick. Will not affect remote clients.
738  
739 If the oper is an admin, they may create a wildcard
740 resv, for example: clones*
741  
742 - Requires Oper Priv: resv
743 EOT
744 0 }
745  
746 0 ▶sub _set {
Subroutine _set: not called CC=1 SCAR=6.9
747 return << 'EOT'
748 SET <option> <value>
749  
750 <option> can be one of the following:
751 AUTOCONN - Sets auto-connect on or off for a particular
752 server
753 AUTOCONNALL - Sets auto-connect on or off for all servers
754 FLOODCOUNT - The number of messages allowed before
755 throttling a user due to flooding.
756 Note that this variable is used for both
757 channels and clients.
758 FLOODTIME - The time, in seconds, of FLOODCOUNT.
759 JFLOODCOUNT - Sets the number of joins in JFLOODTIME to
760 count as flooding. Use 0 to disable.
761 JFLOODTIME - The amount of time in seconds in JFLOODCOUNT to consider
762 as join flooding. Use 0 to disable.
763 MAX - Sets the number of max connections
764 to <value>. (This number cannot exceed
765 HARD_FDLIMIT in defaults.h)
766 SPAMNUM - Sets how many join/parts to channels
767 constitutes a possible spambot.
768 SPAMTIME - Below this time on a channel
769 counts as a join/part as above.
770  
771 - Requires Oper Priv: set
772 EOT
773 0 }
774  
775 0 ▶sub _squit {
Subroutine _squit: not called CC=1 SCAR=6.9
776 return << 'EOT'
777 SQUIT <server> :[reason]
778  
779 Splits <server> away from your side of the net with [reason].
780  
781 - Requires Oper Priv: squit
782 - Requires Oper Priv: squit:remote for servers not connected to you
783 EOT
784 0 }
785  
786 0 ▶sub _stats {
Subroutine _stats: not called CC=1 SCAR=6.9
787 return << 'EOT'
788 STATS <letter> [server|nick]
789  
790 Queries server [server] (or your own server if no
791 server parameter is given) for info corresponding to
792 <letter>.
793  
794 (X = Admin only.)
795 LETTER (* = Oper only.)
796 ------ (^ = Can be configured to be oper only.)
797 X A - Shows the DNS servers in use
798 * c - Shows configured connect {} blocks
799 * d - Shows temporary D lines
800 * D - Shows permanent D lines
801 * e - Shows exemptions to D lines
802 X E - Shows active timers/events
803 X f - Shows file descriptors
804 * H - Shows configured hub/leaf entries
805 ^ i - Shows configured auth {} blocks
806 ^ K - Shows permanent K lines (or matched permanent klines)
807 ^ k - Shows temporary K lines (or matched temporary klines)
808 * L - Shows IP and generic info about [nick]
809 * l - Shows hostname and generic info about [nick]
810 m - Shows commands and their usage
811 ^ o - Shows configured operator {} blocks
812 ^ P - Shows configured listen {} blocks
813 p - Shows opers connected and their idle times
814 * q - Shows resv'd nicks and channels
815 * s - Shows configured service {} blocks
816 * T - Shows configured motd {} blocks
817 * t - Shows generic server stats
818 * U - Shows configured shared {} and cluster {} blocks
819 ^ u - Shows server uptime
820 * v - Shows connected servers and their idle times
821 * x - Shows gecos bans
822 * y - Shows configured class {} blocks
823 * z - Shows memory stats
824 * ? - Shows connected servers and sendq info about them
825 EOT
826 0 }
827  
828 0 ▶sub _time {
Subroutine _time: not called CC=1 SCAR=6.9
829 return << 'EOT'
830 TIME [servername/nickname]
831  
832 The TIME command will return the server's local date and time.
833  
834 If an argument is supplied, the time for the server specified
835 will be returned.
836 EOT
837 0 }
838  
839 0 ▶sub _topic {
Subroutine _topic: not called CC=1 SCAR=6.9
840 return << 'EOT'
841 TOPIC <#channel> :[new topic]
842  
843 With only a channel argument, TOPIC shows the current topic of
844 the specified channel.
845  
846 With a second argument, it changes the topic on that channel to
847 <new topic>. If the channel is +t, only chanops may change the
848 topic.
849  
850 See also: cmode
851 EOT
852 0 }
853  
854 0 ▶sub _trace {
Subroutine _trace: not called CC=1 SCAR=6.9
855 return << 'EOT'
856 TRACE [server | nick]
857  
858 With no argument, TRACE gives a list of all clients connected
859 to the local server, both users and operators.
860  
861 With one argument which is a server, TRACE displays the path
862 to the specified server, and all clients on that server.
863  
864 With one argument which is a client, TRACE displays the
865 path to that client, and that client's information.
866 EOT
867 0 }
868  
869 0 ▶sub _umode {
Subroutine _umode: not called CC=1 SCAR=6.9
870 return << 'EOT'
871 MODE <nick> <+|-><modes>
872  
873 User modes: (* designates that the umode is oper only)
874  
875 USER MODE DESCRIPTION
876 -----------------------------------------------------------------
877 * o - Designates this client is an IRC Operator.
878 Use the OPER command to attain this.
879 i - Designates this client 'invisible'.
880 w - Can see server wallops.
881 W - User is connected using a webirc gateway.
882 * l - Can see oper locops (local wallops).
883 * c - Can see client connections and exits.
884 * u - Can see unauthorized client connections.
885 * j - Can see 'rejected' client notices.
886 * k - Can see server kill messages.
887 * f - Can see 'auth {} block is full' notices.
888 * F - Can see remote client connection/quit notices.
889 * y - Can see stats/links/admin requests to name a few.
890 * d - Can see server debug messages.
891 * n - Can see client nick changes.
892 p - Hides channel list in WHOIS.
893 q - Hides idle and signon time in WHOIS.
894 r - User has been registered and identified for its nick.
895 Can be set only by servers and services.
896 R - Only registered clients may message you.
897 s - Can see generic server messages and oper kills.
898 S - Client is connected via SSL/TLS.
899 * e - Can see new server introduction and split messages.
900 * b - Can see possible bot/join flood warnings.
901 * a - Is marked as a server admin in stats o/p.
902 D - "Deaf": don't receive channel messages.
903 G - "Soft Caller ID": block private messages from people not on
904 any common channels with you (unless they are accepted).
905 g - "Caller ID" mode: only allow accepted clients to message you.
906 * H - IRC operator status is hidden to other users.
907 EOT
908 0 }
909  
910 0 ▶sub _undline {
Subroutine _undline: not called CC=1 SCAR=6.9
911 return << 'EOT'
912 UNDLINE <IP address>
913  
914 Will attempt to undline the given <IP address>
915 If the dline is conf based, the dline will not be removed.
916  
917 UNDLINE <IP address> ON irc.server
918  
919 Will undline the given <IP address> on irc.server if irc.server accepts
920 remote undlines. If the dline is conf based, the dline will
921 not be removed.
922  
923 - Requires Oper Priv: undline
924 EOT
925 0 }
926  
927 0 ▶sub _unkline {
Subroutine _unkline: not called CC=1 SCAR=6.9
928 return << 'EOT'
929 UNKLINE <user@host>
930  
931 Will attempt to unkline the given <user@host>
932 If the kline is conf based, the kline will not be removed.
933  
934 UNKLINE <user@host> ON irc.server
935  
936 Will unkline the user on irc.server if irc.server accepts
937 remote unklines. If the kline is conf based, the kline will
938 not be removed.
939  
940 - Requires Oper Priv: unkline
941 EOT
942 0 }
943  
944 0 ▶sub _unresv {
Subroutine _unresv: not called CC=1 SCAR=6.9
945 return << 'EOT'
946 UNRESV <channel|nick>
947  
948 -- Remove a RESV on a channel or nick
949 Will attempt to remove the resv for the given
950 channel/nick. If the resv is conf based, the resv
951 will not be removed.
952  
953 UNRESV <channel|nick> ON irc.server
954 will unresv the <channel|nick> on irc.server if irc.server
955 accepts remote unresvs. If the resv is conf based, the resv
956 will not be removed.
957  
958 - Requires Oper Priv: unresv
959 EOT
960 0 }
961  
962 0 ▶sub _unxline {
Subroutine _unxline: not called CC=1 SCAR=6.9
963 return << 'EOT'
964 UNXLINE <gecos>
965  
966 Removes an XLINE
967  
968 UNXLINE <gecos> ON irc.server
969 will unxline the gecos on irc.server if irc.server accepts
970 remote unxlines. If the xline is conf based, the xline
971 will not be removed.
972  
973 - Requires Oper Priv: unxline
974 EOT
975 0 }
976  
977 0 ▶sub _user {
Subroutine _user: not called CC=1 SCAR=6.9
978 return << 'EOT'
979 USER <username> <unused> <unused> :<real name/gecos>
980  
981 USER is used during registration to set your gecos
982 and to set your username if the server cannot get
983 a valid ident response. The second and third fields
984 are not used, but there must be something in them.
985 The reason is backwards compatibility
986 EOT
987 0 }
988  
989 0 ▶sub _userhost {
Subroutine _userhost: not called CC=1 SCAR=6.9
990 return << 'EOT'
991 USERHOST <nick>
992  
993 USERHOST displays the username, hostname,
994 operator status, and presence of valid ident of
995 the specified nickname.
996  
997 If you use USERHOST on yourself, the hostname
998 is replaced with the IP you are connecting from.
999 This is needed to provide DCC support for spoofed
1000 hostnames.
1001 EOT
1002 0 }
1003  
1004 0 ▶sub _version {
Subroutine _version: not called CC=1 SCAR=6.9
1005 return << 'EOT'
1006 VERSION [servername/nickname]
1007  
1008 VERSION will display the server version of the specified
1009 server, or the local server if there was no parameter.
1010 EOT
1011 0 }
1012  
1013 0 ▶sub _wallops {
Subroutine _wallops: not called CC=1 SCAR=6.9
1014 return << 'EOT'
1015 WALLOPS :<message>
1016  
1017 Sends a WALLOPS message of <message> to all opers
1018 who are umode +z.
1019  
1020 Server sent WALLOPS go to all opers who are umode +w.
1021  
1022 - Requires Oper Priv: wallops
1023 EOT
1024 0 }
1025  
1026 0 ▶sub _who {
Subroutine _who: not called CC=1 SCAR=6.9
1027 return << 'EOT'
1028 WHO <#channel|user>
1029  
1030 The WHO command displays information about a user,
1031 such as their GECOS information, their user@host,
1032 whether they are an IRC operator or not, etc.
1033 A sample WHO result from a command issued like
1034 "WHO pokey" may look something like this:
1035  
1036 #lamers pokey H pokey@ppp.newbies.net :0 Jim Jones
1037  
1038 The first field indicates the last channel the user
1039 has joined. The second is the user's nickname.
1040 The third field describes the status information about
1041 the user. The possible combinations for this field
1042 are listed below:
1043  
1044 H - The user is not away.
1045 G - The user is set away.
1046 r - The user is using a registered nickname.
1047 * - The user is an IRC operator.
1048 @ - The user is a channel op in the channel listed in the first field.
1049 + - The user is voiced in the channel listed.
1050 % - The user is a half-op in the channel listed.
1051  
1052 The next field contains the username@host of the user.
1053 The final field displays the number of server hops and
1054 the user's GECOS information.
1055  
1056 This command may be executed on a channel, such as
1057 "WHO #lamers" The output will consist of WHO
1058 listings for each user on the channel.
1059  
1060 This command may also be used in conjunction with wildcards
1061 such as * and ?.
1062  
1063 See also: whois, userhost
1064 EOT
1065 0 }
1066  
1067 0 ▶sub _whois {
Subroutine _whois: not called CC=1 SCAR=6.9
1068 return << 'EOT'
1069 WHOIS [remoteserver|nick] nick
1070  
1071 WHOIS will display detailed user information for
1072 the specified nick. If the first parameter is
1073 specified, WHOIS will display information from
1074 the specified server, or the server that the
1075 user is on. This is how to remotely see
1076 idle time and away status.
1077 EOT
1078 0 }
1079  
1080 0 ▶sub _whowas {
Subroutine _whowas: not called CC=1 SCAR=6.9
1081 return << 'EOT'
1082 WHOWAS <nick> [count] [nick|server]
1083  
1084 WHOWAS will show you brief information from the last time
1085 the specified nick was connected or changed nickname.
1086 Depending on the number of times they have connected,
1087 there may be more than one listing for the specified nick.
1088 You can limit how many of those listings will be shown
1089 with the count parameter.
1090  
1091 Specifying nick or server as an additional parameter forwards
1092 the query to that server.
1093  
1094 The WHOWAS data will expire after time.
1095 EOT
1096 0 }
1097  
1098 0 ▶sub _xline {
Subroutine _xline: not called CC=1 SCAR=6.9
1099 return << 'EOT'
1100 XLINE [time] <gecos> :[reason]
1101  
1102 [time] if present, gives number of minutes for XLINE
1103  
1104 Adds a XLINE which will ban the specified gecos from
1105 that server. The banned client will receive a message
1106 saying he/she is banned with reason [reason]
1107  
1108 XLINE [time] <gecos> ON irc.server :[reason]
1109 will xline the gecos on irc.server if irc.server accepts
1110 remote xlines.
1111  
1112 - Requires Oper Priv: xline
1113 EOT
1114 0 }
1115  
1116 2 'Help! I need somebody!';
1117  
1118 =encoding utf8
1119  
1120 =head1 NAME
1121  
1122 POE::Component::Server::IRC::Help - Help text for POE::Component::Server::IRC
1123  
1124 =head1 DESCRIPTION
1125  
1126 POE::Component::Server::IRC::Help is a helper module for
1127 L<POE::Component::Server::IRC> which contains all the help files for
1128 the C<HELP> command.
1129  
1130 =head1 CONSTRUCTOR
1131  
1132 =head2 new
1133  
1134 Creates a C<new> object.
1135  
1136 =head1 METHODS
1137  
1138 =head2 topic
1139  
1140 Takes a help topic. Returns C<undef> if there was an error or the topic
1141 does not exist. Returns in list context the lines of topic text or in
1142 scalar context an C<ARRAYREF> of lines of topic text.
1143  
1144 =head1 AUTHOR
1145  
1146 Chris 'BinGOs' Williams
1147  
1148 =head1 LICENSE
1149  
1150 Copyright C<(c)> Chris Williams
1151  
1152 This module may be used, modified, and distributed under the same terms as
1153 Perl itself. Please see the license that came with your Perl distribution
1154 for details.
1155  
1156 =head1 SEE ALSO
1157  
1158 L<POE::Component::Server::IRC|POE::Component::Server::IRC>
1159  
1160 =cut
« blib/lib/POE/Component/Server/IRC/Common.pm ↑ Summary bin/pmkpasswd »