- return Version(1,2,0,3,VF_COMMON|VF_VENDOR,API_VERSION);
+ return Version("$Id$",VF_COMMON|VF_VENDOR,API_VERSION);
+ }
+
+ virtual void OnRehash(User *user, const std::string ¶meter)
+ {
+ ConfigReader conf(ServerInstance);
+ bool OpersOnly = conf.ReadFlag("showwhois", "opersonly", 0, true);
+
+ if (sw)
+ {
+ ServerInstance->Modes->DelMode(sw);
+ delete sw;
+ }
+
+ sw = new SeeWhois(ServerInstance, OpersOnly);
+ if (!ServerInstance->Modes->AddMode(sw))
+ throw ModuleException("Could not add new modes!");