Added HOOKTYPE_JOIN

This commit is contained in:
codemastr 2002-03-19 15:19:34 +00:00
parent 65a2668ede
commit 7587d594da
3 changed files with 11 additions and 0 deletions

View file

@ -1246,3 +1246,4 @@ seen. gmtime warning still there
people bitching about their servers going down.
*** beta8 released ***
- Added log {} syslog support (appears to work fine) [#0000099]
- Added HOOKTYPE_JOIN

View file

@ -244,6 +244,7 @@ void CommandDel(Command *command);
#define HOOKTYPE_SERVER_CONNECT 11
#define HOOKTYPE_SERVER_QUIT 12
#define HOOKTYPE_STATS 13
#define HOOKTYPE_JOIN 14
/* Module flags */
#define MODFLAG_NONE 0x0000
#define MODFLAG_LOADED 0x0001 /* (mod_load has been called and suceeded) */

View file

@ -2802,6 +2802,10 @@ CMD_FUNC(channel_link)
}
continue;
}
for (global_i = Hooks[HOOKTYPE_JOIN]; global_i; global_i = global_i->next) {
if((*(global_i->func.intfunc))(cptr, sptr, chptr, parv) > 0)
return 0;
}
/*
** Complete user entry to the new channel (if any)
*/
@ -3037,6 +3041,11 @@ CMD_FUNC(m_join)
continue;
}
for (global_i = Hooks[HOOKTYPE_JOIN]; global_i; global_i = global_i->next) {
if((*(global_i->func.intfunc))(cptr,sptr,chptr,parv) > 0)
return 0;
}
/*
** Complete user entry to the new channel (if any)
*/