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.

halt and reformating data

Old posts that have not been replied to for several years.
Locked
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

halt and reformating data

Post by Ofloo »

raw 352:*: { .echo -a $timestamp -Server:4 $5 Status:4 $7 Nick:4 $6 Host:4 $4 | halt }
what is halt command in tcl for example if i wanted to catch an notice .. or a raw how would i do that and ignore it so i could reformat it ..
XplaiN but think of me as stupid
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: halt and reformating data

Post by user »

(17) RAW (stackable)
bind raw <flags> <keyword-mask> <proc>
procname <from> <keyword> <text>

Description: previous versions of Eggdrop required a special compile
option to enable this binding, but it's now standard. The mask
is checked against the keyword (either a numeric, like "368",
or a keyword, like "PRIVMSG"). from will be the server name or
the source user (depending on the keyword); flags are ignored.
The order of the arguments is identical to the order that the
IRC server sends to the bot. The pre-processing only splits it
apart enough to determine the keyword. If the proc returns 1,
Eggdrop will not process the line any further
(this could cause
your bot to behave oddly in some cases).
Module: server
Have you ever read "The Manual"?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The 352 raw occures upon doing an WHO after the eggdrop joined an channel, so making the eggdrop IGNORE that, this "could cause your bot to behave oddly". :)
Once the game is over, the king and the pawn go back in the same box.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

If the proc returns 1, Eggdrop will not process the line any further
tnx for the info didn't know that one also


the who was just an example sample to explain what i wanted to know. ;)
XplaiN but think of me as stupid
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Oh, then use "return 1" as user "pointed" :P :)
Once the game is over, the king and the pawn go back in the same box.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

hehe tnx i know was editing it but tnx for the info tho ;)
XplaiN but think of me as stupid
Locked