Yes i'm new so sorry for stupid question
And yes, i'm reading http://tcl.activestate.com/man/tcl8.3/TclCmd/proc.htm but it doesn't help me with this problem.
I'm trying to register a nick over PM, posting this on channel has no use since it involves password..
This method works, !regteam some_nick some_pass <--- PUBLIC channel
Code: Select all
bind pub n|- !regteam pub:reg_team
proc pub:reg_team { nickname hostname handle channel arguments } {
set nick [lindex [split $arguments] 0]
set password [lindex [split $arguments] 1]
puthelp "PRIVMSG $nickname :Nickname: $nick Password: $password"
}
This method doesn't work, PM method!! What am i missing here?!?
Code: Select all
bind msg n !regteam msg:reg_team
proc msg:reg_team { nickname hostname handle channel arguments } {
set nick [lindex [split $arguments] 0]
set password [lindex [split $arguments] 1]
puthelp "PRIVMSG $nickname :Nickname: $nick Password: $password"
}
Now if i change "arguments" to "args" the error is not there anymore but there is nothing in the args so the output is: Nickname: Password: