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.

is there a way to halt further stacked pubm triggering?

Old posts that have not been replied to for several years.
Locked
j
jamie3
Voice
Posts: 10
Joined: Tue Dec 23, 2003 8:25 am

is there a way to halt further stacked pubm triggering?

Post by jamie3 »

bind pub can be used to bind nonstackable triggers,
and bind pubm for stackable (chainable) triggers.

but i want to be able to trigger a command to halt bind pubm processing, so that i can tell eggdrop, from one of my binc pubm triggered functions, to not proceed through the rest of its chain of triggers that have been registered through bind pubm. sort of like a haltdef in mirc scripting.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

that might be impossible, if (and im almost sure it is) pub is proceeded before pubm. I dont know the exact order, but keep it in mind :D. You can usually prevent pubm beeing called, if the pub bind returns 1, but I never heard from a thing upsidedown :).
suggestion: unbind the pub command and call it from the pubm proc instead and relay the arguments.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

a workaround using bind filt would also work.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

gb wrote:a workaround using bind filt would also work.
(28) FILT (stackable)
bind filt <flags> <mask> <proc>
procname <idx> <text>

Description: party line and file system users have their text sent
through filt before being processed. If the proc returns a blank
string, the text is considered parsed. Otherwise, the bot will use
the text returned from the proc and continue parsing that
Module: core
this sounds like a partyline only bind, doesnt it?

You probably mean a bind to RAW and return with 1 to prevent further processing.
Last edited by De Kus on Tue Feb 08, 2005 2:41 pm, edited 1 time in total.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

ah, i suppose i was a bit quick there, i thought it worked with all binds. its been a while since i used it. :oops:
Locked