Page 1 of 1

Question about Unrealircd programming

Posted: Tue Mar 16, 2004 5:30 pm
by monkey
Can u help me code this into the ircd:

When User connects to IRC...Unreal IRCd sends WWW command -http://www.mywebsite.com/irc_login.asp? ... =<nickname>

so i can record who's online and who's not
thx

Posted: Tue Mar 16, 2004 6:25 pm
by Jay
There's a module for that, take a look at Angrywolf's site for that one.

BTw it works like a charm, if you like a basic example http://www.chat4all.org/~rafe/lounge/index.php

Posted: Tue Mar 16, 2004 6:29 pm
by aquanight
/who +n *

Shows all visible users online. It will also show the last channel they joined if it's visible. If it isn't visible (or someone isn't in any channel), they'll show as in channel *.

If you want to see who is on a single server:
/who +s servername

Either way the output format looks like this:
{<chan>|*} <nick> {H|G}[r][*][?] <user>@<host> * <realname>
H|G shows whether the user is here, or gone (/away). r means registered, and the splatmark (next to the H or G) means the user is an Oper. If you yourself are an Oper, you can see users with mode +i, which will show with a ? next to their status. You will also see users listed in channels with +p or +s because those channels are always visible to you.
Only one channel displays in the WHO list. To see what other channels a user is on, do a WHOIS on that user.

Posted: Wed Mar 17, 2004 12:54 am
by monkey
I got this error with the activeusers module:

Warning: file(/home/monkey/Unreal3.2/tur.db): failed to open stream: Permission denied in /usr/home/monkey/public_html/tur/test.php on line 35

and everything is set properly
activeusers {
update-frequency 1m;
show-realhost no;
monitorchan "#tur" {
file "tur.db";

// Optionally, on non-Windows systems you can
// set the permission of the output file to
// the mode below:

chmod 0640;
};
};
};


please help

Posted: Thu Mar 18, 2004 6:02 pm
by AngryWolf
It's a typical permission problem, the web server cannot open the file for reading. Check permissions of the file and the directories where the file is in.

By the way, I wrote a detailed answer for your original problem at http://unreal.phpmemx.net/forums/viewtopic.php?t=69.

Posted: Thu Mar 18, 2004 6:29 pm
by aquanight
I don't know much about *nix, but I believe apache runs pages under the nobody account (analoguos to the WinNT Guest or IUSR_<compname>). Thus, 'nobody' needs permission to read the datafile you wish to access.

I'd say chmod 777 would solve it but that may not be a good idea ;) .

Posted: Thu Mar 18, 2004 7:46 pm
by jewles

Code: Select all

I'd say chmod 777 would solve it but that may not be a good idea  .
Ummm better idea to chmod to 755

Yay!

Posted: Fri Apr 02, 2004 5:27 am
by w00t
When all else fails, chmod 777 :lol:

I did that to my /etc directory once :oops: before I knew better :? It wasnt funny :shock:

Posted: Sun Apr 11, 2004 10:27 am
by SciFi
i suggest you to use thales or solarstats or so, then you can read it out through mysql on the website to show how many users are online etc.