xonotic/server/rcon2irc/rename.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

19 lines
497 B
Raku

# Xonotic rcon2irc plugin by Merlijn Hofstra licensed under GPL - rename.pl
# Place this file inside the same directory as rcon2irc.pl and add the full filename to the plugins.
sub out($$@);
[ irc => q{:(([^! ]*)![^ ]*) (?i:PRIVMSG) [^&#%]\S* :(.*)} => sub {
my ($hostmask, $nick, $command) = @_;
return 0 if (($store{logins}{$hostmask} || 0) < time());
if ($command =~ m/^name (\d+) (.*)/i) {
out dp => 0, "prvm_edictset server $1 netname \"$2\"";
return -1;
}
return 0;
} ],