Code: Select all
bind pubm - ".hugs *" pub_hugs
proc pub_hugs {nick host handle channel testes} {
set who [llength $testes]
putquick "PRIVMSG $channel :$nick hugs $who
}
Thanks in advance for your help.
Code: Select all
bind pubm - ".hugs *" pub_hugs
proc pub_hugs {nick host handle channel testes} {
set who [llength $testes]
putquick "PRIVMSG $channel :$nick hugs $who
}
Code: Select all
"#.hugs *"
Go here:...So I'm at a loss how this is really suppose to work.
...
Also -<@tempnick> this is a test
<botnick> tempnick hugs 4
Your little script has:llength - Count the number of elements in a list
Code: Select all
set who [llength $testes]
Code: Select all
set who [llength [split $testes] ]
Code: Select all
<Slyde> .hugs gelay and samantha
<bot> Slyde hugs gelay and samantha
Code: Select all
bind pub - .hugs pub_hugs
proc pub_hugs {nick host handle channel text} {
puthelp "PRIVMSG $channel :$nick hugs [join [split $text]]"
}
Code: Select all
bind pub - .hugs pub_hugs
proc pub_hugs {nick host handle channel text} {
if {![llength $text]} {
puthelp "PRIVMSG $channel :Syntax: .hugs <member or members name>"
} else {
puthelp "PRIVMSG $channel :$nick hugs [join [split $text]]"
}
}
And while there, text search forGo here:
http://www.eggheads.org/support/egghtml ... mands.html
You can text search there for
bind pubm
and it explains how it works, etc.
It would have saved you a lot of time.Landslyde wrote: ...
i'll definitely check out that link.
Excellent....
But now I know the difference.
...