mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
Minor security fix (exposes path of config file to opers)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@465 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
ed184bd151
commit
5a7a382637
@ -4043,7 +4043,7 @@ void handle_list(char **parameters, int pcnt, userrec *user)
|
|||||||
|
|
||||||
void handle_rehash(char **parameters, int pcnt, userrec *user)
|
void handle_rehash(char **parameters, int pcnt, userrec *user)
|
||||||
{
|
{
|
||||||
WriteServ(user->fd,"382 %s %s :Rehashing",user->nick,CONFIG_FILE);
|
WriteServ(user->fd,"382 %s %s :Rehashing",user->nick,CleanFilename(CONFIG_FILE));
|
||||||
ReadConfig();
|
ReadConfig();
|
||||||
FOREACH_MOD OnRehash();
|
FOREACH_MOD OnRehash();
|
||||||
WriteOpers("%s is rehashing config file %s",user->nick,CleanFilename(CONFIG_FILE));
|
WriteOpers("%s is rehashing config file %s",user->nick,CleanFilename(CONFIG_FILE));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user