Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a bind type for incoming messages #924

Pixelz opened this issue Jan 28, 2020 · 0 comments

Add a bind type for incoming messages #924

Pixelz opened this issue Jan 28, 2020 · 0 comments


Copy link

@Pixelz Pixelz commented Jan 28, 2020

Add a bind for incoming messages that gets triggered before any kind of processing happens. Basically the reverse of BIND OUT. If text is returned from the proc, Eggdrop will continue with normal processing of the line. If the proc returns 1 Eggdrop will halt processing.

Along with this, a new command should be added to trigger Eggdrop processing of a line that you feed it I call it "sendinc" below for lack of a better idea. A line sent to Eggdrop this way should also trigger the bind to ensure compatibility between different scripts.

The usefulness of this is that Eggdrop would be able to support any arbitrary line-based prococol (even ones with multiple lines per message). Scripts could be written to allow Eggdrop to connect to XMPP, Discord, weird IRCds etc.

bind inc <flags> <mask> <proc>
procname <line>

sendinc <text>

Example pseudocode:

bind inc - "*" myIncoming
proc myIncoming {line} {
	if {$line == "good"} {
		return $line
	} else {
		return 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.