If you mean the bot's nick, just put a ! in the on TEXT event.

Code:
on !@*:JOIN:#:{


If you mean some other nick, just include an IF statement...

Code:
if ($nick != somenick) { do this }