-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathm_minor.cpp
More file actions
29 lines (24 loc) · 918 Bytes
/
m_minor.cpp
File metadata and controls
29 lines (24 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//https://wiki.inspircd.org/Historical:1.2/Writing_Modules_For_InspIRCd
#include "inspircd.h"
class ModuleMinor : public Module
{
public:
ModuleMinor(InspIRCd* Me) : Module(Me)
{
Implementation eventlist[] = { I_OnUserPreMessage };
ServerInstance->Modules->Attach(eventlist, this, 1);
}
virtual ~ModuleMinor()
{
}
virtual Version GetVersion()
{
return Version("$Id$", 0, API_VERSION);
}
virtual void OnUserPreMessage(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
{
ServerInstance->Logs->Log("ModuleMinor", DEBUG, "User nick" + user->nick + " User realname " + user->fullname);
ServerInstance->Logs->Log("ModuleMinor", DEBUG, "Dest nick" + dest->nick + " Dest realname " + dest->fullname);
}
};
MODULE_INIT(ModuleMinor)