* | 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
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Creates a snomask with notices whenever a new channel is created */
: Module(Me)
{
ServerInstance->SNO->EnableSnomask('j', "CHANCREATE");
+ Implementation eventlist[] = { I_OnUserJoin };
+ ServerInstance->Modules->Attach(eventlist, this, 1);
}
virtual ~ModuleChanCreate()
return Version(1,1,0,0,VF_VENDOR,API_VERSION);
}
- void Implements(char* List)
- {
- List[I_OnUserJoin] = 1;
- }
- virtual void OnUserJoin(userrec* user, chanrec* channel, bool &silent)
+ virtual void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent)
{
if (channel->GetUserCounter() == 1)
{