#include "users.h"
#include "channels.h"
#include "modules.h"
+#include "helperfuncs.h"
+#include "inspircd.h"
/* $ModDesc: A dummy module for testing */
// 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, std::string reason)
+ virtual void OnUserQuit(userrec* user, const std::string &reason)
{
// 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)
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, std::string partreason)
+ virtual void OnUserPart(userrec* user, chanrec* channel, const std::string &partreason)
{
// method called when a user parts a channel
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);
}
};