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.

Hook for me joining a channel

Old posts that have not been replied to for several years.
Locked
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Hook for me joining a channel

Post by Photon »

Not sure if this is really the right forum, but the answer to this could be code or tcl - so...

I kind need to trap when the bot joins a channel. Does the join bind get called when this happens or not?

also - did we decidee wether you could compile libaries into a module or not?
d
darko``
Op
Posts: 121
Joined: Sun Sep 08, 2002 5:33 pm
Location: Malta

Post by darko`` »

Yes, bind join fires on you own join. Btw, TCL is code to >:>
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Photon - Yes you can compile libraries into a module. Pick any module and type "ldd module.so":

[stdarg@hydra 6]$ ldd blowfish.so
libtcl.so.0 => /usr/lib/libtcl.so.0 (0x40012000)
libm.so.6 => /lib/i686/libm.so.6 (0x40093000)
libdl.so.2 => /lib/libdl.so.2 (0x400b5000)
libnsl.so.1 => /lib/libnsl.so.1 (0x400b8000)
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Those are all libraries that have been linked with blowfish.so.
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Post by Photon »

ok ok ... tcl is code too - just very finikckity code ... lol

ta for the join info.

So .. I'm still getting used to gnu makefiles ... I take it man make would solve my questions, but how would I go about say linking the socket lib into the module in the makefile? (thinking of adding qstat functionality locally)

scuse my gnu n00bness...

P.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

I haven't tried this but it should work.

Open your module's Makefile (I'm using blowfish as an example).

Find part (near the middle) that says:

../../../blowfish.$(MOD_EXT): ../blowfish.o
$(LD) -o ../../../blowfish.$(MOD_EXT) ../blowfish.o $(XLIBS)
$(STRIP) ../../../blowfish.$(MOD_EXT)

See the line that starts with ($LD) ? Add whatever libraries you want right there on the end of that line after $(XLIBS).
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Post by Photon »

Ta! I'll give that a try this w'end ... expect much crashing... lol

Still find it a bit weird basically having a makefile and linker script in one ... but there y'go. If I can do it it saves much running of background tasks, so thats definately a plus.
Locked