summaryrefslogtreecommitdiff
path: root/src/modules/m_foobar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_foobar.cpp')
-rw-r--r--src/modules/m_foobar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_foobar.cpp b/src/modules/m_foobar.cpp
index 612b9d62b..bffdd7730 100644
--- a/src/modules/m_foobar.cpp
+++ b/src/modules/m_foobar.cpp
@@ -57,7 +57,7 @@ class ModuleFoobar : public Module
// method called when a user connects
std::string b = user->nick;
- ServerInstance->Log(DEBUG,"Foobar: User connecting: "+b);
+ ServerInstance->Logs->Log("m_foobar",DEBUG,"Foobar: User connecting: "+b);
}
virtual void OnUserQuit(User* user, const std::string &reason, const std::string &oper_message)
@@ -65,7 +65,7 @@ class ModuleFoobar : public Module
// method called when a user disconnects
std::string b = user->nick;
- ServerInstance->Log(DEBUG,"Foobar: User quitting: "+b);
+ ServerInstance->Logs->Log("m_foobar",DEBUG,"Foobar: User quitting: "+b);
}
virtual void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent)
@@ -74,7 +74,7 @@ class ModuleFoobar : public Module
std::string c = channel->name;
std::string b = user->nick;
- ServerInstance->Log(DEBUG,"Foobar: User "+b+" joined "+c);
+ ServerInstance->Logs->Log("m_foobar",DEBUG,"Foobar: User "+b+" joined "+c);
}
virtual void OnUserPart(User* user, Channel* channel, const std::string &partreason, bool &silent)
@@ -83,7 +83,7 @@ class ModuleFoobar : public Module
std::string c = channel->name;
std::string b = user->nick;
- ServerInstance->Log(DEBUG,"Foobar: User "+b+" parted "+c);
+ ServerInstance->Logs->Log("m_foobar",DEBUG,"Foobar: User "+b+" parted "+c);
}
};