That code would send the same command every second for 3 minutes, not wait 3 minutes then send the command once.

Corrected
Code:
 on *:connect:{ .timer 1 180 .msg x@channels.undernet.org login username pass }