mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-05 07:53:13 +02:00
Document some more structs and group them in a logical place.
This commit is contained in:
@@ -20,6 +20,10 @@
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
/** @file
|
||||
* @brief The channel mode API used by modules.
|
||||
*/
|
||||
|
||||
#include "unrealircd.h"
|
||||
|
||||
/* Channel parameter to slot# mapping */
|
||||
@@ -150,6 +154,7 @@ void extcmode_para_delslot(Cmode *c, int slot)
|
||||
param_to_slot_mapping[c->flag] = 0;
|
||||
}
|
||||
|
||||
/** Register a new channel mode */
|
||||
Cmode *CmodeAdd(Module *module, CmodeInfo req, Cmode_t *mode)
|
||||
{
|
||||
short i = 0, j = 0;
|
||||
|
||||
@@ -18,6 +18,10 @@
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
/** @file
|
||||
* @brief Various important (common) channel functions.
|
||||
*/
|
||||
|
||||
#include "unrealircd.h"
|
||||
|
||||
long opermode = 0;
|
||||
|
||||
+2
-2
@@ -824,7 +824,7 @@ int do_mode_char(Channel *chptr, long modetype, char modechar, char *param,
|
||||
sendnumeric(cptr, ERR_CHANOWNPRIVNEEDED, chptr->chname);
|
||||
break;
|
||||
}
|
||||
if (!is_halfop(cptr, chptr)) /* htrig will take care of halfop override notices */
|
||||
if (!is_half_op(cptr, chptr)) /* htrig will take care of halfop override notices */
|
||||
opermode = 1;
|
||||
}
|
||||
goto process_listmode;
|
||||
@@ -839,7 +839,7 @@ int do_mode_char(Channel *chptr, long modetype, char modechar, char *param,
|
||||
sendnumeric(cptr, ERR_CHANOWNPRIVNEEDED, chptr->chname);
|
||||
break;
|
||||
}
|
||||
if (!is_halfop(cptr, chptr)) /* htrig will take care of halfop override notices */
|
||||
if (!is_half_op(cptr, chptr)) /* htrig will take care of halfop override notices */
|
||||
opermode = 1;
|
||||
}
|
||||
goto process_listmode;
|
||||
|
||||
+1
-1
@@ -140,7 +140,7 @@ CMD_FUNC(m_part)
|
||||
comment = NULL;
|
||||
/* Same for +m */
|
||||
if ((chptr->mode.mode & MODE_MODERATED) && comment &&
|
||||
!has_voice(sptr, chptr) && !is_halfop(sptr, chptr))
|
||||
!has_voice(sptr, chptr) && !is_half_op(sptr, chptr))
|
||||
{
|
||||
comment = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user