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 

del user with specific channel flag

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Tue Oct 07, 2008 5:01 pm    Post subject: del user with specific channel flag Reply with quote

my proc:

Code:
bind part - * flag_part

proc flag_part {nick uhost handle channel msg } {
 global flagchannel mychannel
   if { [matchattr $handle V] } {
deluser $nick -V
}
}


How i can do that for Only channel flag.. If someone Have Only one flag ( V ) on channel flag then will be deleted.. but if someone have this flag Global flag then dont del that nick..
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Oct 07, 2008 5:05 pm    Post subject: Reply with quote

try something like this:
Code:
matchattr $handle -V&+V $channel


Also, why the -V with deluser? Should only be "deluser <handle>"
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Thu Oct 09, 2008 1:15 am    Post subject: Reply with quote

yes -V isnt nesessery Razz
thnx.. i am gonna test it
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 -> Scripting Help 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