Silo, you should use $mnick instead:
if ($mnick != $me) { return }
Using $nick returns $null in the on text event.