Log in

View Full Version : Show users in IRC Chat (no eggdrop)


Smirks
09-25-2002, 10:00 PM
Hello,

Current Version: 1.1b

This hack is in very very (very!) beta stage. I'm only announcing in here for documentation and testing purposes. I'm in the process of re-working and re-writing it, so don't expect this to be relevant in a week or two.

Description:
This hack will display a list of users in your IRC based chat room. It will/should work with any chat hack, so long as it's IRC based. The only hack I've tested it with is the eIRC hack. I've tested the script on both Linux and FreeBSD.

How it works:
This hack uses a small perl script and POE::Component::IRC to connect to IRC, join a channel, grab the users, save the info to a file and then exit. It is run via cron to update the list as often as you choose. vB will display this info with a template mod.

What is planned:
I've re-written the script using POE::Component::IRC, which is a little more flexible, so my previous 'planned' list is already complete.

Since this hack is in it's beta state I will only be giving it out via email. If you'd like to have the beta version, please email me, or PM me and I'll get it to you.

Once a week of beta testing is complete I will make this hack available to the general public.

You can see this hack in action at http://bbs.pearl-jam.net or via the screenshot attached.

Version History:
1.0b -
* Inital Release
* Written using Net::IRC perl module

1.1b -
* Re-written using POE::Component::IRC perl module
* Got rid of topic retrieval
* Modified user display to show # of users, and users
* Took out user status (ie- @, +, etc)
* Comified user list
* Can now detect users w/out being in channel (fixes a nasty feature which cause the "bot" to join the channel, gather the info and quit. Now the channel doesn't even know it's being watched)
* Can hide certian users (with a slight code hack [unsupported feature])

garoboldy
09-26-2002, 04:10 PM
ok, sign me up for testing...I am needing this really bad....since I cant use eggdrop on my site...thanks...

garoboldy
09-26-2002, 04:44 PM
I emailed you back...now I know what you are talking about...sorry..

garoboldy
09-26-2002, 04:59 PM
ok, I follow your install....and when I go to my irc-users.pl

I get an internal server error.

not sure whats going on there...

any ideas?

Smirks
09-26-2002, 05:05 PM
Originally posted by garoboldy
ok, I follow your install....and when I go to my irc-users.pl

I get an internal server error.

not sure whats going on there...

any ideas?
irc-users.pl is to be run from the command line, or cron. It is not meant to be run via the browser.

C

snyx
09-26-2002, 05:55 PM
yeah I would LOVE to try this out!!
www.form-kaos.com/board

shoot me a msg to snyxmedia@hotmai.com if ya like :)

Smirks
09-26-2002, 06:05 PM
Originally posted by snyx
yeah I would LOVE to try this out!!
www.form-kaos.com/board

shoot me a msg to snyxmedia@hotmai.com if ya like :)
I've sent you the hack via email.

snyx
09-26-2002, 06:07 PM
will install it after skool man, thx
uhhhh what would I put into the cron "command" feild in my hostcp?

thx,
-myles

Smirks
09-26-2002, 06:12 PM
Originally posted by snyx
will install it after skool man, thx
uhhhh what would I put into the cron "command" feild in my hostcp?

thx,
-myles
/path/to/irc-users.pl

Crontab file should look something similar to:

*/5 * * * * /path/to/irc-users.pl

*/5 = run every 5 minutes

garoboldy
09-26-2002, 09:28 PM
will let you know if any new errors occur.

ok, updated my post instead of posting again...lol
I did my cron job and made it for every minute....it has yet to make my file and as far as I know all my information is correct....

snyx
09-26-2002, 10:01 PM
im getting in error 500 on when I try to run irc-users?
huh..

Smirks
09-26-2002, 10:03 PM
Originally posted by snyx
im getting in error 500 on when I try to run irc-users?
huh..
Like I said, run it from the command line or cron. The perl module Net::IRC must be installed to work.

snyx
09-26-2002, 10:03 PM
smirks u got icq? hit me up if so.. 71926358 or msn snyxmedia@hotml.com

www.form-kaos.com/cgi-bin/irc-users.pl

garoboldy
09-26-2002, 10:03 PM
you shouldnt run it in the browser window...I did the same thing without thinking...LOL

you have to run it on cron or command line.

Smirks
09-26-2002, 10:04 PM
Originally posted by garoboldy
will let you know if any new errors occur.

ok, updated my post instead of posting again...lol
I did my cron job and made it for every minute....it has yet to make my file and as far as I know all my information is correct....

Please make sure the perl module Net::IRC is installed and working properly.

Also, try running irc-users.pl from the command line to see if you get any errors.

snyx
09-26-2002, 10:04 PM
Net::IRC? lol

Smirks
09-26-2002, 10:06 PM
Originally posted by snyx
Net::IRC? lol
Yes, if you have root on the box...

perl -MCPAN -e'install Net::IRC'

garoboldy
09-26-2002, 10:07 PM
I dont think I can use command line...I have a cpanel for my site...on my server there are a few other people with sites as well...as far as Net::IRC and will check on that right now.

snyx
09-26-2002, 10:08 PM
okay sorry but I have no idea what you just said to do..
sorry for being a pain here

snyx
09-26-2002, 10:18 PM
is Net::IRC something I have to install seperatly?
otherwise everything is done and ready to fly.. I just cant figure out that Net::IRC thingy..

KISS
09-26-2002, 10:28 PM
Smirks, I'd like to give it a shot.... kisster@cox.net

snyx
09-26-2002, 10:51 PM
Originally posted by Smirks

Yes, if you have root on the box...

perl -MCPAN -e'install Net::IRC'
as in telnet? cuz I dont have acsess to that :(

garoboldy
09-26-2002, 10:55 PM
yeah, it seems like hack is going to require that you have a dedicated server of your own with root access....my host Ventures Online does not have eggdrop abilities, so I tried this...and now I still cannot use this I dont think, because I dont have access to root on the server....

snyx
09-26-2002, 11:03 PM
yeah im on ventures too

Smirks
09-26-2002, 11:33 PM
Originally posted by snyx
okay sorry but I have no idea what you just said to do..
sorry for being a pain here
No worries... you just need to check with ventures to make sure they have the Net::IRC perl module installed on their server.

If they don't, or they won't install it, then this hack won't work.

garoboldy
09-26-2002, 11:36 PM
what server you on synx??

garoboldy
09-26-2002, 11:48 PM
I was just informed that Ventures online has a strict No IRC policy for their virtual server customers....I guess I am going to have to switch hosts or get a dedicated server..... :devious: :confused: :ermm:

snyx
09-27-2002, 04:23 AM
damn.. well looks like were out of luck..
what server are you on? I cant remember, but a keyword may refresh my memory.. if we were on the same one we could complain!! :):)

thanks anyways smirks you have the solution to my problem, but my host is sitting on a stick ;)

garoboldy
09-27-2002, 02:53 PM
I am on the Metroid server.
not sure if you are on or not.

Smirks
09-27-2002, 03:36 PM
I've modified the irc-users script quite a bit. I've edited my orginal post to reflect the changes made.

JulianD
09-27-2002, 05:53 PM
Hey man, I'd like to test it on my server. It could be very helpful for me. thanks

My mail is juliand@laneros.com

Higgins
09-28-2002, 08:19 AM
Thats exatley this what in need for my Board. Please could you mail me the Hack for testing at higgi1@web.de ? Thanks in advance

DarkDraco07
09-28-2002, 06:09 PM
can i test this hack out too? darkdraco07@msn.com
www.darknemesis.com/forums

NietzscheKid
09-29-2002, 11:31 AM
HI Smirks,

Could you pm/email me the hack as well?

Thanks :classic:

kuska
09-29-2002, 06:50 PM
Hook me UP !!!

DavidKosiba@hotmail.com

Thanks.

NietzscheKid
09-29-2002, 07:00 PM
Woooooooops, i forgot my email addy:

tignasse@t-online.de

Thanks again

N!ck
09-29-2002, 08:03 PM
i'd like to try this out... phobe62@yahoo.com if you wouldn't mind... thanks.

xeon
10-01-2002, 01:36 PM
Interested also... xeoniii@yahoo.com

N!ck
10-02-2002, 02:09 AM
Smirks, where'd you go, bud?

nighteyes
10-05-2002, 04:54 PM
I'd like to give it a whirl on our servers... nomailhere@wongfaye.com

roadkill
10-06-2002, 12:22 PM
sounds cool, gimme a shout on roadrunner_uk_98@yahoo.com

cheers

Graphics
10-06-2002, 02:22 PM
Sweet. I don't need it but it looks great.

talaus
10-11-2002, 06:23 PM
I want to try it out
silviu@inter.net.il
Thanks, great modification :p

PhIlka
10-13-2002, 06:44 PM
yeah nice idea, pls mail it, too !
Tommythesim@gmx.de

subu1
11-13-2002, 09:39 AM
hi smirks,

can you send me your Hack. my addy is: santaclaus0000@hotmail.com

its a great Hack

thanks and greetz subu1

marcel-ea
11-22-2002, 10:05 PM
Hello,

Great idea, plz send my the hack :D
marcel@eaffemail.com

I have always over 50 chatter on. Very Cool Idea

Juanito
11-27-2002, 07:44 AM
Interesting, PM sent :p

Smirks
12-04-2002, 06:32 PM
The overhead of this is too large for my site, so I've stopped using it. I've made it available for general download on the first post, and on this one.

I will not support this anymore as I've stopped using it on my own forums. If you hack, or update let me know!

Good Luck!