]> jfr.im git - irc/rqf/shadowircd.git/blame - tools/shadow_help.pl
tools: Added shadow_help.pl. This is a simple irssi script that adds a OHELP command.
[irc/rqf/shadowircd.git] / tools / shadow_help.pl
CommitLineData
11179744
JH
1use strict;
2use Irssi;
3use Irssi::Irc;
4use vars qw($VERSION %IRSSI);
5
6$VERSION = "1.0";
7
8%IRSSI = (
9 authors => 'JD Horelick',
10 contact => 'jdhore1@gmail.com',
11 name => 'shadow_help.pl',
12 description => 'Adds a OHELP command so that you do not need to type /quote help',
13 license => 'GNU General Public License',
14 url => 'http://shadowircd.net/',
15);
16
17sub cmd_ohelp {
18 my ($data, $server) = @_;
19
20 if (!$server || !$server->{connected}) {
21 Irssi::print("Not connected to server");
22 return;
23 }
24
25 $server->send_raw("HELP $data");
26}
27
28Irssi::command_bind('ohelp', \&cmd_ohelp);
29# vim: ts=4