aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-08-04 19:09:32 -0400
committerGravatar Daniel De Graaf2010-08-04 19:09:32 -0400
commitdbfc49b6bf48a3ed034efcb8bbd80442bce7b37b (patch)
tree7d52c43796cee19750455ba14a75625456d80620 /src/modules
parentAdd some comments, fix an uninitialized variable (diff)
Fix compilation of m_redirect
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_redirect.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp
index c1e82a4c3..889e2e091 100644
--- a/src/modules/m_redirect.cpp
+++ b/src/modules/m_redirect.cpp
@@ -105,12 +105,12 @@ class ModuleRedirect : public Module
return;
// ok, now actually do the redirect
- std::string channel = join.chan->GetModeParameter(&re);
+ std::string channel = perm.chan->GetModeParameter(&re);
- join.ErrorNumeric(470, "%s %s :You have been tranferred by a channel redirection.", join.chan->name.c_str(), channel.c_str());
- ServerInstance->RedirectJoin.set(join.user, 1);
- Channel::JoinUser(join.user, channel.c_str(), false, "", false, ServerInstance->Time());
- ServerInstance->RedirectJoin.set(join.user, 0);
+ perm.ErrorNumeric(470, "%s %s :You have been tranferred by a channel redirection.", perm.chan->name.c_str(), channel.c_str());
+ ServerInstance->RedirectJoin.set(perm.user, 1);
+ Channel::JoinUser(perm.user, channel.c_str(), false, "", false, ServerInstance->Time());
+ ServerInstance->RedirectJoin.set(perm.user, 0);
}
virtual ~ModuleRedirect()