xonotic/server/rcon2irc/suggestmap.pl
Stephan Stahl 2ec7592650 rm'd further nex-havoc references
replace nex with xonotic in a lot of places
2010-03-30 20:55:57 +00:00

13 lines
454 B
Perl

# Xonotic rcon2irc plugin by Merlijn Hofstra licensed under GPL - suggestmap.pl
# Place this file inside the same directory as rcon2irc.pl and add the full filename to the plugins.
sub out($$@);
#read the suggest vote
[ dp => q{:vote:suggested:(.+):(\d+)} => sub {
my ($map, $id) = @_;
my $nick = $store{"playernick_byid_$id"} || 'console';
out irc => 0, "PRIVMSG $config{irc_channel} :* map suggested: \00304$map\017 by $nick\017";
return 0;
} ],