bind pub !test test
bind msgm - back
proc back {n u h a} {
if {$nick != "askBOT"} {return 0}
set arg1 [lindex $a 0]
set arg2 [lrange $a 1 end]
puthelp "PRIVMSG #my_channel :$arg1 $arg2"
}
proc test {n uh h c a} {
set arg1 [lindex $a 0]
puthelp "PRIVMSG $askBOT :$arg1"
}
And i need to procedure 'back' write: "Nick_user_who_last_use_!test : $arg1 $arg2"
bind pub !test test
bind msgm - back
proc test {n uh h c a} {
global test_nick
set arg1 [lindex $a 0]; set test_nick $n
puthelp "PRIVMSG askBOT :$arg1"
return 0
}
proc back {n u h a} {
global test_nick
if {![string equal -nocase "askBOT" $n]} { return 0 }
set arg1 [lindex $a 0]
set arg2 [lrange $a 1 end]
puthelp "PRIVMSG #my_channel :$test_nick: $arg1 $arg2"
unset test_nick; return 0
}
Last edited by awyeah on Mon Dec 20, 2004 8:08 am, edited 2 times in total.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================