summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 518ecd71e..82a6a2237 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1076,7 +1076,10 @@ void handle_rehash(char **parameters, int pcnt, userrec *user)
{
WriteServ(user->fd,"382 %s %s :Rehashing",user->nick,CleanFilename(CONFIG_FILE));
ReadConfig(false,user);
- FOREACH_MOD OnRehash();
+ std::string parameter = "";
+ if (pcnt)
+ parameter = parameters[0];
+ FOREACH_MOD OnRehash(parameter);
WriteOpers("%s is rehashing config file %s",user->nick,CleanFilename(CONFIG_FILE));
}