1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-02 21:13:12 +02:00

Document some more structs and group them in a logical place.

This commit is contained in:
Bram Matthys
2019-09-11 19:07:11 +02:00
parent c72d848b61
commit 9b113c27e4
6 changed files with 191 additions and 142 deletions
+2 -2
View File
@@ -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
View File
@@ -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;
}