Skip to content

Commit

Permalink
Changed re and re_u to redirect_chmode and redirect_umode
Browse files Browse the repository at this point in the history
  • Loading branch information
HelixSpiral committed Mar 30, 2012
1 parent 06a6f27 commit ba4e109
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/modules/m_redirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,17 @@ class RedirectUMode : public ModeHandler
class ModuleRedirect : public Module
{

Redirect re;
RedirectUMode re_u;
Redirect redirect_chmode;
RedirectUMode redirect_umode;

public:

ModuleRedirect() : re(this), re_u(this) {}
ModuleRedirect() : redirect_chmode(this), redirect_umode(this) {}

void init()
{
ServerInstance->Modules->AddService(re);
ServerInstance->Modules->AddService(re_u);
ServerInstance->Modules->AddService(redirect_chmode);
ServerInstance->Modules->AddService(redirect_umode);
Implementation eventlist[] = { I_OnPermissionCheck };
ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
}
Expand All @@ -130,12 +130,12 @@ class ModuleRedirect : public Module
// already in a redirect, don't double-redirect
if (ServerInstance->RedirectJoin.get(perm.source))
return;
// not +L
if (!perm.chan->IsModeSet(&re))
// not +L (channel)
if (!perm.chan->IsModeSet(&redirect_chmode))
return;

// ok, now actually do the redirect
std::string channel = perm.chan->GetModeParameter(&re);
std::string channel = perm.chan->GetModeParameter(&redirect_chmode);

// If umode L is set they don't want auto-redirection.
if (perm.source->IsModeSet('L'))
Expand Down

0 comments on commit ba4e109

Please sign in to comment.