summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_override.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp
index 5bd453597..a69ab9bb2 100644
--- a/src/modules/m_override.cpp
+++ b/src/modules/m_override.cpp
@@ -171,7 +171,8 @@ class ModuleOverride : public Module
{
if (NoisyOverride)
{
- if (!user->IsInvited(chan->name))
+ std::string x = chan->name;
+ if (!user->IsInvited(x))
{
WriteChannelWithServ((char*)Srv->GetServerName().c_str(),chan,"NOTICE %s :%s invited himself into the channel",cname,user->nick);
}