]>
jfr.im git - irc/rqf/shadowircd.git/blob - tools/shadow_help_irssi.pl
4 use vars
qw($VERSION %IRSSI);
9 authors
=> 'JD Horelick',
10 contact
=> 'jdhore1@gmail.com',
11 name
=> 'shadow_help.pl',
12 description
=> 'Adds an OHELP and OSET command to make using the IRCd-side HELP and SET commands easier',
13 license
=> 'GNU General Public License',
14 url
=> 'http://shadowircd.net/',
18 my ($data, $server) = @_;
20 if (!$server || !$server->{connected
}) {
21 Irssi
::print("Not connected to server");
25 $server->send_raw("HELP $data");
29 my ($data, $server) = @_;
31 if (!$server || !$server->{connected
}) {
32 Irssi
::print("Not connected to server");
36 $server->send_raw("SET $data");
39 Irssi
::command_bind
('ohelp', \
&cmd_ohelp
);
40 Irssi
::command_bind
('oset', \
&cmd_oset
);