]> icculus.org git repositories - divverent/nexuiz.git/blob - server/rcon2irc/echo-rcon.pl
rcon2irc plugins by merlijn
[divverent/nexuiz.git] / server / rcon2irc / echo-rcon.pl
1 # Nexuiz rcon2irc plugin by Merlijn Hofstra licensed under GPL - echo-rcon.pl
2 # Place this file inside the same directory as rcon2irc.pl and add the full filename to the plugins.
3
4 sub out($$@);
5
6 [ dp => q{server received rcon command from (.*):  (.*)} => sub {
7         my ($origin, $cmd) = @_;
8         return 0 if ($origin eq $config{dp_listen}); #do not relay rcon2irc commands
9         my $origin = color_dp2irc $origin;
10         out irc => 0, "PRIVMSG $config{irc_channel} :\00302* admin\017 command recieved from $origin: \00304$cmd\017";
11         return 0;
12 } ],