summaryrefslogtreecommitdiff
path: root/src/modules/m_nonotice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nonotice.cpp')
-rw-r--r--src/modules/m_nonotice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_nonotice.cpp b/src/modules/m_nonotice.cpp
index 7ce1967fe..8c5e24248 100644
--- a/src/modules/m_nonotice.cpp
+++ b/src/modules/m_nonotice.cpp
@@ -57,7 +57,7 @@ class NoNotice : public ModeHandler
class ModuleNoNotice : public Module
{
- Server *Srv;
+
NoNotice* nt;
public:
@@ -66,7 +66,7 @@ class ModuleNoNotice : public Module
{
nt = new NoNotice(ServerInstance);
- Srv->AddMode(nt, 'T');
+ ServerInstance->AddMode(nt, 'T');
}
void Implements(char* List)
@@ -81,7 +81,7 @@ class ModuleNoNotice : public Module
chanrec* c = (chanrec*)dest;
if (c->IsModeSet('T'))
{
- if ((Srv->IsUlined(user->server)) || (c->GetStatus(user) == STATUS_OP) || (c->GetStatus(user) == STATUS_HOP))
+ if ((ServerInstance->IsUlined(user->server)) || (c->GetStatus(user) == STATUS_OP) || (c->GetStatus(user) == STATUS_HOP))
{
// ops and halfops can still /NOTICE the channel
return 0;