This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Need small TCL =)

Old posts that have not been replied to for several years.
Locked
Z
ZoneISP
Voice
Posts: 11
Joined: Sun May 29, 2005 4:50 pm
Location: Kuwait
Contact:

Need small TCL =)

Post by ZoneISP »

hello everybody, im new one here =)

i'm looking for a small script that voice the nick if have in his host word like

* Joins: Kto (Soul@team.of.elites.net)

*elites* if host have this word voice them in chan =)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind join - * voice:elites

proc voice:elites {nick uhost hand chan} {
 if {[string match -nocase *elites* [lindex [split $uhost @] 1]]} {
  pushmode $chan +v $nick
 }
}
Z
ZoneISP
Voice
Posts: 11
Joined: Sun May 29, 2005 4:50 pm
Location: Kuwait
Contact:

Post by ZoneISP »

<Seosp> [21:21] Tcl error [voice:elites]: invalid command name "voice:elites"

error =(
Z
ZoneISP
Voice
Posts: 11
Joined: Sun May 29, 2005 4:50 pm
Location: Kuwait
Contact:

Post by ZoneISP »

yeah its work work thx fz =)
Locked