That should be like: Got Poop?3[00:09:49] <dcToAST> !aa poop
[00:09:51] <octain> Got $adword?3
But its not its still keeping the $adword...
It also does it kinda slow...
Any help would be great...
this is my code:
## The Character to trigger the trigger
set adword(cmdchar) "!"
## The Trigger
set adtrig "aa"
## Catch the trigger being pulled in the chat room
bind pub - [string trim $adword(cmdchar)]$adtrig ad_socket
proc ad_socket {nick uhost hand chan text} {
set adword [split $text]
set admsgs {
{Got $adword?}
{Got $adword?3}
{Got $adword?4}
{Got $adword?6}
{Got $adword?7}
}
set outmsg [lindex $admsgs [rand [llength $admsgs]]]
putserv "privmsg $chan :$admsgs"
}