This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

run proc with two flags?

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

run proc with two flags?

Post by ultralord »

can i run one proc with 2 flags?
like

bind pub D|V procname

D and V is flags..

tnx
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

<global flags>|<channel flags>
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

i try but no response with channel flag

Code: Select all

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: Select all

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 ?:o
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

so ? :p
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Worked fine for me. However, this might be important to note:
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.
Post Reply