mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-01-08 06:59:42 +00:00
2ec7592650
replace nex with xonotic in a lot of places
19 lines
497 B
Raku
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;
|
|
} ],
|