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.

auto voice

Old posts that have not been replied to for several years.
Locked
J
Johnny_was

Post by Johnny_was »

Hi, I need a script that will autovoice users on joining that I have flagged as '+S'
I am using 1.6.7 and I have tried a few autovoice scripts but none seem to work..

Any help would be appreciated.
Thanks
T
TriPpen^KiSs

Post by TriPpen^KiSs »

A very basic TCL

bind JOIN - * do_chan

proc do_chan {nick uhost hand chan} {
if {[matchattr $nick +S] == "1"} {
pushmode $chan +v $nick
}
}

If you need anymore help email kissmine69@optushome.com.au
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

- Code -
bind JOIN S * voice:S

proc voice:S {nick uhost hand chan} {
pushmode $chan +v $nick
}
- Code -

:smile:
User avatar
Souperman
Halfop
Posts: 69
Joined: Sat Feb 02, 2002 8:00 pm
Location: Cape Town, South Africa
Contact:

Post by Souperman »

Code: Select all

bind JOIN - * do_chan
proc do_chan {nick uhost hand chan} {
 if {[matchattr $nick +S] == "1"} {
  pushmode $chan +v $nick
 }
}
Why would you do matchattr when the bind system already allows you to specify the flags which will trigger it?
J
Johnny_was

Post by Johnny_was »

much appreciated
2nd one works a treat..
Locked