Have you disabled colours for the bot? also have you considered using Ouka's welcome message to do this? as using the script above will (if memory serves me) return the node address for anyone on secondary, rather than the actual ip, to get or log the information you're after more accurately using metis I'd use the following code instead
<config>alternatively if you're doing this *purely* for logging purposes, rather than for admins to see the information, then modifying the output in the robomx options messages sheet will achieve what your after on the bot.
<out type="normal">#admincmd printip %RAWNAME%</out>