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 

run proc with two flags?

 
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 1:56 pm    Post subject: run proc with two flags? Reply with quote

can i run one proc with 2 flags?
like

bind pub D|V procname

D and V is flags..

tnx
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 5:08 pm    Post subject: Reply with quote

<global flags>|<channel flags>
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sun Aug 31, 2008 6:03 pm    Post subject: Reply with quote

i try but no response with channel flag

Code:
bind pub D|V [string trim $g_trigger]add g_add

on tcl..


user with D flag is ok.. but user with V channel flag bot doesnt response

Code:
01:00:14] <Botnick> [00:00] #Ultralord# whois ul
[01:00:15] <Botnick> HANDLE    PASS NOTES FLAGS           LAST
[01:00:15] <Botnick> uL        no       0 V               never (nowhere)
[01:00:15] <Botnick>                                    #mychannel          -               never


on dcc chat.. why doesnt work ?Surprised
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Mon Sep 08, 2008 3:00 pm    Post subject: Reply with quote

so ? :p
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Sep 08, 2008 3:19 pm    Post subject: Reply with quote

Worked fine for me. However, this might be important to note:
Quote:
PUBM (stackable)

bind pubm <flags> <mask> <proc>
procname <nick> <user@host> <handle> <channel> <text>

Description: just like MSGM, except it's triggered by things said on a channel instead of things /msg'd to the bot. The mask is matched against the channel name followed by the text and can contain wildcards. If the proc returns 1, Eggdrop will not log the message that triggered this bind. PUBM binds are processed before PUB binds. If the exclusive-binds setting is enabled, PUB binds will not be trigged by text that a PUBM bind has already handled.

_________________
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