summaryrefslogtreecommitdiff
path: root/src/modules/m_denychans.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-19 00:11:49 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-19 00:11:49 +0000
commita8d0bb046a67ba41947738b02cb7705f5db9fe67 (patch)
tree52b004752759f5168b7ce734e588547e7327a46e /src/modules/m_denychans.cpp
parentfd355973486299b3db37a4ec46125476f59db0ef (diff)
And these
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9753 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_denychans.cpp')
-rw-r--r--src/modules/m_denychans.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp
index 8d242edce..f28547679 100644
--- a/src/modules/m_denychans.cpp
+++ b/src/modules/m_denychans.cpp
@@ -48,7 +48,7 @@ class ModuleDenyChannels : public Module
if (!ServerInstance->IsChannel(redirect.c_str()))
{
if (user)
- user->WriteServ("Notice %s :Invalid badchan redirect '%s'", user->nick, redirect.c_str());
+ user->WriteServ("Notice %s :Invalid badchan redirect '%s'", user->nick.c_str(), redirect.c_str());
throw ModuleException("Invalid badchan redirect, not a channel");
}
@@ -67,7 +67,7 @@ class ModuleDenyChannels : public Module
{
/* <badchan:redirect> is a badchan */
if (user)
- user->WriteServ("NOTICE %s :Badchan %s redirects to badchan %s", user->nick, name.c_str(), redirect.c_str());
+ user->WriteServ("NOTICE %s :Badchan %s redirects to badchan %s", user->nick.c_str(), name.c_str(), redirect.c_str());
throw ModuleException("Badchan redirect loop");
}
}
@@ -116,13 +116,13 @@ class ModuleDenyChannels : public Module
Channel *newchan = ServerInstance->FindChan(redirect);
if ((!newchan) || (!(newchan->IsModeSet('L'))))
{
- user->WriteNumeric(926, "%s %s :Channel %s is forbidden, redirecting to %s: %s",user->nick,cname,cname,redirect.c_str(), reason.c_str());
+ user->WriteNumeric(926, "%s %s :Channel %s is forbidden, redirecting to %s: %s",user->nick.c_str(),cname,cname,redirect.c_str(), reason.c_str());
Channel::JoinUser(ServerInstance,user,redirect.c_str(),false,"",false,ServerInstance->Time());
return 1;
}
}
- user->WriteNumeric(926, "%s %s :Channel %s is forbidden: %s",user->nick,cname,cname,reason.c_str());
+ user->WriteNumeric(926, "%s %s :Channel %s is forbidden: %s",user->nick.c_str(),cname,cname,reason.c_str());
return 1;
}
}