The one problem I can see with this snippet is that not all networks\' services ask you to identify to your nick that way... also, that way you\'ll perform the identify command every time nickserv asks you to identify, no matter what the nick is. So you could be trying to identify to a nickname that doesn\'t belong to you. I\'d use an if statement to check whether the nick you\'re using is one of the ones you have registered, and if so, perform the identify command, if not, do nothing.