egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help chan join

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
opsb
Halfop


Joined: 01 Sep 2007
Posts: 41

PostPosted: Sat Jul 19, 2008 6:36 am    Post subject: Help chan join Reply with quote

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
View user's profile Send private message
opsb
Halfop


Joined: 01 Sep 2007
Posts: 41

PostPosted: Sat Jul 26, 2008 7:58 am    Post subject: Reply with quote

Anyone pls Smile
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Jul 26, 2008 11:38 am    Post subject: Reply with quote

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
View user's profile Send private message
opsb
Halfop


Joined: 01 Sep 2007
Posts: 41

PostPosted: Sat Jul 26, 2008 9:10 pm    Post subject: Reply with quote

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 Sad
/me thinks that -voh means that script will trigger only if users with v o h flags join chan.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jul 27, 2008 6:26 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Jul 27, 2008 10:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber