Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Module to export userlist  (Read 4711 times)

0 Members and 1 Guest are viewing this topic.

confusi0n

  • Guest
Module to export userlist
« on: July 17, 2006, 11:58:08 AM »

Hi there! I'd like to throw a quick module together that will dump the userlist of a particular channel into a file readable by a php script. I plan on using this to display the users currently in the channel on a webpage.

I'm looking for any documentation (any whatsoever) on coding anope modules so i can get on this right away. How difficult do you think it would be to throw something like this together.

Any alternative methods that you think might work better?

Cheers,

John
Logged

Dave Robson

  • Team
  • *
  • Offline Offline
  • Posts: 357
(No subject)
« Reply #1 on: July 17, 2006, 12:52:13 PM »

Logged

FiXato

  • Guest
(No subject)
« Reply #2 on: July 18, 2006, 09:02:52 AM »

and if you use Unreal, you can just use Angrywolf's ActiveUsers Module
Quote

     Dumps a channel member list into a file including member name, connection time, idle time and channel prefixes if present. Comes with XML support. Optionally, the permission of each given file can be set to a specified mode on *NIX systems. Requested by Serevinus.


*note: his website seems to be down here for the moment; if needed I still have the unrealmodule myself.
Logged

confusi0n

  • Guest
(No subject)
« Reply #3 on: July 18, 2006, 10:01:33 AM »

Quote
Originally posted by FiXato
and if you use Unreal, you can just use Angrywolf's ActiveUsers Module
Quote

     Dumps a channel member list into a file including member name, connection time, idle time and channel prefixes if present. Comes with XML support. Optionally, the permission of each given file can be set to a specified mode on *NIX systems. Requested by Serevinus.


*note: his website seems to be down here for the moment; if needed I still have the unrealmodule myself.


This sounds like exactly what i need, and could save me a lot of time. Any chance i could grab it from you? I am at john.zless AT gmail DOT com.

Thanks man,

John



[Edited on 18-7-2006 by confusi0n]
Logged

FiXato

  • Guest
(No subject)
« Reply #4 on: July 18, 2006, 01:40:50 PM »

Download
activeusers.conf (and edit to your likening)
activeusers.xslexample xsl file for transforming the xml.
and the original activeusers.c
or my editted version: activeusers_fix.c
which adds dtd support.

If you downloaded my version, please edit the file:
find
Code: [Select]

fprintf(fp, "<!DOCTYPE activeusers SYSTEM \"http://url/to/activeusers.dtd\">\n");

and edit the http path appropriately. (too lazy to make it into a separate config item)
And also download activeusers.dtd
and place it in an appropriate directory.

Compile the module as usual and add to your unreal config:
Code: [Select]

loadmodule "src/modules/activeusers.so";    //Dump list of users in monitored channels in .xml or .db file
include "activeusers.conf";


Example page I made with the XML files

[Edited on 2006.7.18 by FiXato]

[Edited on 2006.7.18 by FiXato]
Logged
Pages: [1]   Go Up