X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmodules.h;h=8bc52b683db6b51acecf12570b1f20a96e1837bd;hb=a77e32fa3267f022b4b0dd973c9b937534da9a5d;hp=9928ad32618c1098c9f9239d0ff2927e40925e7c;hpb=f3f570b4fa14dd375ad4a06bddca8f365fb32c55;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/modules.h b/include/modules.h index 9928ad326..8bc52b683 100644 --- a/include/modules.h +++ b/include/modules.h @@ -75,7 +75,7 @@ enum MessageType { * ipv4 servers, so this value will be ten times as * high on ipv6 servers. */ -#define NATIVE_API_VERSION 11009 +#define NATIVE_API_VERSION 11011 #ifdef IPV6 #define API_VERSION (NATIVE_API_VERSION * 10) #else @@ -518,9 +518,11 @@ class Module : public Extensible * system. You should use it to reload any files so that your module keeps in step with the * rest of the application. If a parameter is given, the core has done nothing. The module * receiving the event can decide if this parameter has any relevence to it. + * @param user The user performing the rehash, if any -- if this is server initiated, the + * value of this variable will be NULL. * @param parameter The (optional) parameter given to REHASH from the user. */ - virtual void OnRehash(const std::string ¶meter); + virtual void OnRehash(userrec* user, const std::string ¶meter); /** Called when a raw command is transmitted or received. * This method is the lowest level of handler available to a module. It will be called with raw