Merge pull request #289 from edk0/rehash-privileged-modes
Recheck umodes for opers after rehash
This commit is contained in:
commit
1aff5a5647
1 changed files with 13 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "stdinc.h"
|
||||
#include "ircd_defs.h"
|
||||
#include "s_conf.h"
|
||||
#include "s_user.h"
|
||||
#include "s_newconf.h"
|
||||
#include "newconf.h"
|
||||
#include "s_serv.h"
|
||||
|
@ -630,6 +631,8 @@ attach_conf(struct Client *client_p, struct ConfItem *aconf)
|
|||
bool
|
||||
rehash(bool sig)
|
||||
{
|
||||
rb_dlink_node *n;
|
||||
|
||||
hook_data_rehash hdata = { sig };
|
||||
|
||||
if(sig)
|
||||
|
@ -648,6 +651,16 @@ rehash(bool sig)
|
|||
|
||||
open_logfiles();
|
||||
|
||||
RB_DLINK_FOREACH(n, local_oper_list.head)
|
||||
{
|
||||
struct Client *oper = n->data;
|
||||
const char *modeparv[4];
|
||||
modeparv[0] = modeparv[1] = oper->name;
|
||||
modeparv[2] = "+";
|
||||
modeparv[3] = NULL;
|
||||
user_mode(oper, oper, 3, modeparv);
|
||||
}
|
||||
|
||||
call_hook(h_rehash, &hdata);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue