Question about Unrealircd programming

Talk about pretty much anything here, but DO NOT USE FOR SUPPORT.

Moderator: Supporters

Locked
monkey
Posts: 4
Joined: Tue Mar 16, 2004 5:28 pm

Question about Unrealircd programming

Post by monkey » Tue Mar 16, 2004 5:30 pm

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

Jay
Posts: 11
Joined: Sat Mar 06, 2004 2:10 am

Post by Jay » Tue Mar 16, 2004 6:25 pm

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

aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight » Tue Mar 16, 2004 6:29 pm

/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.

monkey
Posts: 4
Joined: Tue Mar 16, 2004 5:28 pm

Post by monkey » Wed Mar 17, 2004 12:54 am

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

AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post by AngryWolf » Thu Mar 18, 2004 6:02 pm

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.

aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight » Thu Mar 18, 2004 6:29 pm

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 ;) .

jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA
Contact:

Post by jewles » Thu Mar 18, 2004 7:46 pm

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

w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Yay!

Post by w00t » Fri Apr 02, 2004 5:27 am

When all else fails, chmod 777 :lol:

I did that to my /etc directory once :oops: before I knew better :? It wasnt funny :shock:
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]

SciFi
Posts: 7
Joined: Mon Mar 08, 2004 6:44 pm
Contact:

Post by SciFi » Sun Apr 11, 2004 10:27 am

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.
-- Denis 'SciFi' Simonet

Locked