- return Version(1,1,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
+ if (symbol != 'R')
+ return MOD_RES_PASSTHRU;
+
+ ServerInstance->XLines->InvokeStats("R", 223, user, results);
+ return MOD_RES_DENY;
+ }
+
+ void OnUserPostNick(User *user, const std::string &oldnick) CXX11_OVERRIDE
+ {
+ if (!IS_LOCAL(user))
+ return;
+
+ if (!MatchOnNickChange)
+ return;
+
+ XLine *rl = ServerInstance->XLines->MatchesLine("R", user);
+
+ if (rl)
+ {
+ // Bang! :D
+ rl->Apply(user);
+ }
+ }
+
+ void OnBackgroundTimer(time_t curtime) CXX11_OVERRIDE
+ {
+ if (added_zline)
+ {
+ added_zline = false;
+ ServerInstance->XLines->ApplyLines();
+ }
+ }
+
+ void OnUnloadModule(Module* mod) CXX11_OVERRIDE
+ {
+ // If the regex engine became unavailable or has changed, remove all rlines
+ if (!rxfactory)
+ {
+ ServerInstance->XLines->DelAll(f.GetType());
+ }
+ else if (rxfactory.operator->() != factory)
+ {
+ factory = rxfactory.operator->();
+ ServerInstance->XLines->DelAll(f.GetType());
+ }
+ }
+
+ void Prioritize()
+ {
+ Module* mod = ServerInstance->Modules->Find("m_cgiirc.so");
+ ServerInstance->Modules->SetPriority(this, I_OnUserRegister, PRIORITY_AFTER, mod);