]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_foobar.cpp
Fix recommended by nenolod, silly mistake apparently :P
[user/henk/code/inspircd.git] / src / modules / m_foobar.cpp
index fb3e8d736b9971137b6c5bef8f10af54038d3d92..bffdd7730b190178db6ea8c14004a8829e160455 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -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,16 +65,16 @@ 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 &silent)
+       virtual void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent)
        {
                // method called when a user joins a channel
-       
+
                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);
        }
 
 };