summaryrefslogtreecommitdiff
path: root/src/modules/m_foobar.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 16:56:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 16:56:03 +0000
commite91d5023f3ace4bb80d197621d6dc20b6e293641 (patch)
tree7d117cc7908bbf5fb0dd18167369f5ff302317c4 /src/modules/m_foobar.cpp
parent94288cdc2efb02eab9f27b3225adad839a7f2b58 (diff)
Removal of Server::Log -- not much ever used it anyway with the ability to use log(). log() macro still exists, and calls InspIRCd::Log()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4845 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_foobar.cpp')
-rw-r--r--src/modules/m_foobar.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/m_foobar.cpp b/src/modules/m_foobar.cpp
index 6db01bc03..93b1848fe 100644
--- a/src/modules/m_foobar.cpp
+++ b/src/modules/m_foobar.cpp
@@ -20,6 +20,7 @@ using namespace std;
#include "channels.h"
#include "modules.h"
#include "helperfuncs.h"
+#include "inspircd.h"
/* $ModDesc: A dummy module for testing */
@@ -67,7 +68,7 @@ class ModuleFoobar : public Module
// method called when a user connects
std::string b = user->nick;
- Srv->Log(DEBUG,"Foobar: User connecting: " + b);
+ log(DEBUG,"Foobar: User connecting: "+b);
}
virtual void OnUserQuit(userrec* user, const std::string &reason)
@@ -75,7 +76,7 @@ class ModuleFoobar : public Module
// method called when a user disconnects
std::string b = user->nick;
- Srv->Log(DEBUG,"Foobar: User quitting: " + b);
+ log(DEBUG,"Foobar: User quitting: "+b);
}
virtual void OnUserJoin(userrec* user, chanrec* channel)
@@ -84,7 +85,7 @@ class ModuleFoobar : public Module
std::string c = channel->name;
std::string b = user->nick;
- Srv->Log(DEBUG,"Foobar: User " + b + " joined " + c);
+ log(DEBUG,"Foobar: User "+b+" joined "+c);
}
virtual void OnUserPart(userrec* user, chanrec* channel, const std::string &partreason)
@@ -93,7 +94,7 @@ class ModuleFoobar : public Module
std::string c = channel->name;
std::string b = user->nick;
- Srv->Log(DEBUG,"Foobar: User " + b + " parted " + c);
+ log(DEBUG,"Foobar: User "+b+" parted "+c);
}
};