09/05/2010, 22:49
(Modification du message : 09/05/2010, 22:50 par loulou7593.)
j'ai fait donc comme ca
Mais maintenant j'ai cela comme erreur
[22:47] Tcl error in script for 'need-op':
[22:47] wrong # args: should be "putserv text ?options?"
[22:48] Tcl error in script for 'need-op':
[22:48] can't read "Niubot": no such variable
tcl
bind pub n .needop needop
proc needop {nick host hand chan arg} {
global botnick
set Niubot [lindex $arg 0]
set pass [lindex $arg 1]
channel set $chan need-op { putserv "PRIVMSG $Niubot :op $pass" }
return 0
}
Mais maintenant j'ai cela comme erreur
[22:47] Tcl error in script for 'need-op':
[22:47] wrong # args: should be "putserv text ?options?"
[22:48] Tcl error in script for 'need-op':
[22:48] can't read "Niubot": no such variable