Hello all. I am new to TCL and am wanting to get started. I've got some experience with VB and a few other programming languages / scripts. I've recently took on TCL and was going to write what I thought would be a simple TCL to do a chat command that is like !reg and the bot regs it's self, and !ident and the bot idents it's self.. I want to paste some code in here and see if someone can tell me why it's giving me "wrong number of args" error.
BEGIN PASTE
set NSPW "EDITME"
set NSEmail "EDITED@TCL.Testing.com"
bind pub n !reg DoRegNow
bind pub n !ident DoIdentNow
proc DoRegNow {} {
putserv "PRIVMSG NickServ :Register $NSPW $NSEmail"
}
proc DoIdentNow {} {
putserv "PRIVMSG NickServ :Ident $NSPW"
}
END PASTE
Help would be greatly appreciated.
BEGIN PASTE
set NSPW "EDITME"
set NSEmail "EDITED@TCL.Testing.com"
bind pub n !reg DoRegNow
bind pub n !ident DoIdentNow
proc DoRegNow {} {
putserv "PRIVMSG NickServ :Register $NSPW $NSEmail"
}
proc DoIdentNow {} {
putserv "PRIVMSG NickServ :Ident $NSPW"
}
END PASTE
Help would be greatly appreciated.