summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 15:46:11 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 15:46:11 +0000
commit8b126657e79754e1d843da6c48d770937b589dab (patch)
tree4c5bbfba5002498e5b09c1884893990c6dc33c07 /src/commands.cpp
parent5a331966832a930d4770752f5e60338581830887 (diff)
Added remote rehash (even to a mask)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2061 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 82a6a2237..a2514f29a 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1075,12 +1075,17 @@ void handle_list(char **parameters, int pcnt, userrec *user)
void handle_rehash(char **parameters, int pcnt, userrec *user)
{
WriteServ(user->fd,"382 %s %s :Rehashing",user->nick,CleanFilename(CONFIG_FILE));
- ReadConfig(false,user);
std::string parameter = "";
if (pcnt)
+ {
parameter = parameters[0];
+ }
+ else
+ {
+ WriteOpers("%s is rehashing config file %s",user->nick,CleanFilename(CONFIG_FILE));
+ ReadConfig(false,user);
+ }
FOREACH_MOD OnRehash(parameter);
- WriteOpers("%s is rehashing config file %s",user->nick,CleanFilename(CONFIG_FILE));
}
void handle_lusers(char **parameters, int pcnt, userrec *user)