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 

part from channel and remove 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: Sun Aug 31, 2008 10:32 am    Post subject: part from channel and remove flag Reply with quote

stupid script and makes me feeling bad :/

Code:
set flagchannel "#mychannel"
set mychannel "#mychannel"

bind part -  flag_part

proc flag_part {nick uhost channel } {
 global flagchannel mychannel
   if { $flagchannel == $mychannel } {
 chattr $nick -V
}
}


[16:30] Tcl error [flag_part]: wrong # args: should be "flag_part nick uhost channel"

what args i must put.. i want to make that script.. when someone part's from specific channel bot remove the (+V) flag

thnx.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Aug 31, 2008 4:53 pm    Post subject: Reply with quote

Quote:
PART (stackable)

bind part <flags> <mask> <proc>

procname <nick> <user@host> <handle> <channel> <msg>



Description: triggered by someone leaving the channel. The mask is matched against "#channel nick!user@host" and can contai wildcards. If no part message is specified, msg will be set to "".

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
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