X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=server%2Frcon2irc%2Frcon2irc.pl;h=88a98ccc438c93dd4950f774248a8e99d34749b7;hp=b5d3c89e859405277dbfec3c27d9d60cf4e6e3b4;hb=67a864dd70dca3a4533fe271622b1a044edc4503;hpb=c445176a3613c07bc72409310bc638a9aa62fd7b diff --git a/server/rcon2irc/rcon2irc.pl b/server/rcon2irc/rcon2irc.pl index b5d3c89e..88a98ccc 100755 --- a/server/rcon2irc/rcon2irc.pl +++ b/server/rcon2irc/rcon2irc.pl @@ -514,7 +514,7 @@ sub recvchallenge($) if not defined $s; length $s or last; - if($s =~ /^\377\377\377\377challenge (.*)$/s) + if($s =~ /^\377\377\377\377challenge (.*)(?:$|\0)/s) { return $1; }