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.

Binding probs again :(

Old posts that have not been replied to for several years.
Locked
H
HeLLFyRe

Binding probs again :(

Post by HeLLFyRe »

Here's the deal:
1) I can't seem to bind pub with flags.. When I don't use flags it works tho.
2) I still can't seem to figure out the server notices thingy.. This is my code:

Code: Select all

proc sb_conn { from keyword text } { 
putquick "privmsg #testin :I'm a triggered bind!";
}

bind raw *|* - "*Client connecting:*" sb_conn
This is the notice the bot gets:
<Keeper> [17:10] -NOTICE- *** Notice -- Client connecting: test (~hh@vdp103.ath05.cas.hol.gr) [195.97.120.104] {1} (Party line text)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As noted in the previous thread, the mask in the RAW bind is not a mask, it is a keyword.

These keywords are IRC commands, like NOTICE, PRIVMSG. Single word or number entities.

EG, in your case

Code: Select all

bind raw - "NOTICE" command_name
As for flags, these do not work in raw binds, as this trigger is called before eggdrop does any processing on the text itself.

You extract the details needed, and eggdrop provides commands, in which you cqan test for flags, within your code.
Locked