Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Module lists  (Read 3950 times)

0 Members and 1 Guest are viewing this topic.

ben

  • Guest
Module lists
« on: July 23, 2007, 10:39:49 PM »

yes your wiki thing did a great job explaining the basics of the module making process however it didnt really list the options

for example:
    EvtMessage *msg;

    msg = createEventHandler("Name", moduleEventHandler);
the "Name" is what im confused about is there some list of things you can put in it or is it activated by such aliases
/kick = "KICK"
and etc..

also...
for Event hooks they use av[?] alot
however is it possible to get things off of it like: host, ip, hostmask, address, realname?
and if so how?

is there an timer option that you can do something every 6 hours or something?
Logged

katsklaw

  • Guest
(No subject)
« Reply #1 on: July 24, 2007, 12:51:07 AM »

you will need to see the doxy site as well but at the time of this writting is offline.
Logged

Trystan Scott Lee

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 343
(No subject)
« Reply #2 on: July 24, 2007, 02:49:09 PM »

createEventHandler : is from when anope sends out a IRCD command, NICK, SERVER etc.. KICK would be the command if services were sending a KICK to the upstream server, do not confuse createEventHandler with createEventHook

the Events are passed an array.. from the array you can get more details, so if we are talking about kick being done

    EVENT_CHAN_KICK
        Someone has just been kicked from a channel.
        av[0]  The nick of the user that has been kicked.
        av[1]  The channel the user has been kicked from.

then you take the 0 index of the array, and call finduser() on it and then you have the user struct to play with which has all this info
Logged
my God my tourniquet, return to me salvation
Pages: [1]   Go Up