#include <ekg/win32.h>#include <ekg/debug.h>#include <ekg/stuff.h>#include <ekg/sessions.h>#include <ekg/windows.h>#include <ekg/xmalloc.h>#include "irc.h"#include "autoacts.h"Functions | |
| static int | irc_autorejoin_timer (int type, void *data) |
| int | irc_onkick_handler (void *data, va_list ap) |
| int | irc_autorejoin (session_t *s, int when, char *chan) |
| int irc_autorejoin | ( | session_t * | s, | |
| int | when, | |||
| char * | chan | |||
| ) |
Try to rejoin.
| s | - session | |
| when | - type of rejoining:
| |
| chan | - if when == IRC_REJOIN_KICK than it specify to which channel we want to rejoin after kick. |
| static int irc_autorejoin_timer | ( | int | type, | |
| void * | data | |||
| ) | [static] |
Timer handler for auto-rejoining
Added by irc_autorejoin() It just execute irc_autorejoin() with params...
Check session with session_find_ptr() ?
| data | - irc_onkick_handler_t * struct with data inited by irc_autorejoin() |
| int irc_onkick_handler | ( | void * | data, | |
| va_list | ap | |||
| ) |
Handler for: IRC_KICK
Here we check if we were kicked (by checking nick) and if yes, than if we want to rejoin on kick (REJOIN && REJOIN_TIME)
Than after time specified by REJOIN_TIME we try to rejoin
irc_autorejoin_timer() - for rejoin timer.
| ap | 1st param: (char *) session - session uid ap 2nd param: (char *) nick - full uid of kicked person (irc:nickname) ap 3rd param: (char *) chan - full uid of channel where kick event happen. ap 4th param: (char *) kickedby - full uid who kicked. | |
| data | NULL |
1.5.1