The solution is very simple, you don't need extra tcl scripts or anything, just add this line to the .conf:
set init-server { putserv "privmsg nickserv :IDENTIFY nickname password" }
set init-server { putserv "privmsg nickserv :IDENTIFY nickname password" }