mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-13 13:41:37 +01:00
Added HOOKTYPE_JOIN
This commit is contained in:
parent
65a2668ede
commit
7587d594da
3 changed files with 11 additions and 0 deletions
1
Changes
1
Changes
|
@ -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
|
||||
|
|
|
@ -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) */
|
||||
|
|
|
@ -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)
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue