- virtual ~ModuleInvisible()
- {
- ServerInstance->Modes->DelMode(qm);
- ServerInstance->Modes->DelModeWatcher(ido);
- DELETE(qm);
- DELETE(ido);
- DELETE(conf);
- }
-
- virtual Version GetVersion()
- {
- return Version(1, 1, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
- }
+ /* Yeah i know people can take this out. I'm not about to obfuscate code just to be a pain in the ass. */
+ ServerInstance->Users->ServerNoticeAll("*** m_invisible.so has just been loaded on this network. For more information, please visit http://inspircd.org/wiki/Modules/invisible");
+ Implementation eventlist[] = {
+ I_OnUserPreMessage, I_OnUserPreNotice, I_OnUserJoin,
+ I_OnBuildNeighborList, I_OnSendWhoLine, I_OnNamesListItem
+ };
+ ServerInstance->Modules->Attach(eventlist, this, 6);
+ };
+
+ ~ModuleInvisible()
+ {
+ };
+
+ Version GetVersion();
+ void OnUserJoin(Membership* memb, bool sync, bool created, CUList& excepts);
+ void OnBuildNeighborList(User* source, UserChanList &include, std::map<User*,bool> &exceptions);
+ ModResult OnUserPreNotice(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list);
+ ModResult OnUserPreMessage(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list);
+ void OnSendWhoLine(User* source, User* user, Channel* channel, std::string& line);
+ void OnNamesListItem(User* issuer, Membership* memb, std::string &prefixes, std::string &nick);
+};