projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Clear privileges when deopering.
[ircu2.10.12-pk.git]
/
ircd
/
s_user.c
diff --git
a/ircd/s_user.c
b/ircd/s_user.c
index a19691db7edd7cd6954c251be297d7a127ef5864..1f0e0d92ddd990ff543c0445af741d7d72464555 100644
(file)
--- a/
ircd/s_user.c
+++ b/
ircd/s_user.c
@@
-1128,7
+1128,10
@@
int set_user_mode(struct Client *cptr, struct Client *sptr, int parc,
{
if ((FlagHas(&setflags, FLAG_OPER) || FlagHas(&setflags, FLAG_LOCOP)) &&
!IsAnOper(sptr))
+ {
det_confs_butmask(sptr, CONF_CLIENT & ~CONF_OPERATOR);
+ client_set_privs(sptr, NULL);
+ }
if (SendServNotice(sptr))
{