| View previous topic :: View next topic |
| Author |
Message |
opsb Halfop
Joined: 01 Sep 2007 Posts: 41
|
Posted: Sat Jul 19, 2008 6:36 am Post subject: Help chan join |
|
|
hi
I need script that will check if user is channel op, halfop, or voice, (on join) and if is not one of 3 will greet msg like Hey nick, ask question and wait for answer.
I've tried to search TCL archive for didnt found anything.
Regrads. |
|
| Back to top |
|
 |
opsb Halfop
Joined: 01 Sep 2007 Posts: 41
|
Posted: Sat Jul 26, 2008 7:58 am Post subject: |
|
|
Anyone pls  |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Jul 26, 2008 11:38 am Post subject: |
|
|
Untested, but should work..
| Code: |
proc greet_nonop {nick host hand chan} {
puthelp "PRIVMSG $chan :Hey $nick, ask question and wait for answer."
}
bind join -voh& * greet_nonop
|
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
opsb Halfop
Joined: 01 Sep 2007 Posts: 41
|
Posted: Sat Jul 26, 2008 9:10 pm Post subject: |
|
|
| nml375 wrote: | Untested, but should work..
| Code: |
proc greet_nonop {nick host hand chan} {
puthelp "PRIVMSG $chan :Hey $nick, ask question and wait for answer."
}
bind join -voh& * greet_nonop
|
|
Thnx for reply but won't work
/me thinks that -voh means that script will trigger only if users with v o h flags join chan. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Jul 27, 2008 6:26 am Post subject: |
|
|
| opsb wrote: | | /me thinks that -voh means that script will trigger only if users with v o h flags join chan. |
- means NOT voh. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Jul 27, 2008 10:22 am Post subject: |
|
|
Actually, it would seem bindings does not honor "negating flags", so we'll have to do it the other way... Also, just remembered that halfop is "l", not "h"..
| Code: | proc greet_nonop {nick host hand chan} {
if {[matchattr $hand "-flo&-flo" $chan]} {
puthelp "PRIVMSG $chan :Hey $nick, ask question and wait for answer."
}
}
bind join - * greet_nonop |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|