My fault, edit

if ($numeric == 372) { aline $+(@motd.,$server) $3- }

to read:

if (($numeric == 372) && ($3-)) { aline $+(@motd.,$server) $3- }