// this method instantiates a class of type Version, and returns
// the modules version information using it.
- return Version(1,1,0,1,VF_VENDOR,API_VERSION);
+ return Version(1,2,0,1,VF_VENDOR,API_VERSION);
}
// 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)
// 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)
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)
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);
}
};