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.

Howto program triggers?

Old posts that have not been replied to for several years.
Locked
G
Galadhrim
Op
Posts: 123
Joined: Fri Apr 11, 2003 8:38 am
Location: Netherlands, Enschede

Howto program triggers?

Post by Galadhrim »

I need triggers for my module so that it checks the topic and reorganizes the binary tree (database) it manages. The problem i see is that eggdrop does not support threads or forks so that I can't spawn a thread to have it check the topic every hour or reorganize the tree every 4 hours.

Is there any method or function I can use or call to add triggers so that the bot automatically updates its database and checks the topic of the current channel? I've come a long way just by reading the modules of the eggdrop and trying out stuff, because there is simply no help anywhere and I can't find anything that I need for this problem...
m
makam
Voice
Posts: 15
Joined: Thu Jul 08, 2004 1:16 am
Location: Montevideo, Uruguay
Contact:

Post by makam »

Yes, sure.

Take a look in the channel module.
channel.c, you can see same like:
add_hook

Study that...
--
Web: http://www.makam.org/
Chans: #Uruguay,#Hattricklatino@UnderNet
G
Galadhrim
Op
Posts: 123
Joined: Fri Apr 11, 2003 8:38 am
Location: Netherlands, Enschede

Post by Galadhrim »

tnx for that. Didn't know it was that easy. :)
Locked