* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ * Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
#include "inspircd_config.h"
#include "inspircd.h"
#include "inspircd_io.h"
-#include "inspircd_util.h"
#include <unistd.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
#include "globals.h"
#include "modules.h"
#include "dynamic.h"
+#include "commands.h"
#include "wildcard.h"
#include "message.h"
#include "mode.h"
#include "xline.h"
#include "inspstring.h"
#include "helperfuncs.h"
+#include "typedefs.h"
#ifdef GCC3
#define nspace __gnu_cxx
extern std::vector<ircd_module*> factory;
extern int WHOWAS_STALE;
extern int WHOWAS_MAX;
-extern time_t startup_time;
-extern std::vector<std::string> module_names;
-extern int boundPortCount;
-extern std::stringstream config_f;
extern time_t TIME;
+extern chan_hash chanlist;
using namespace std;
std::vector<ModeParameter> custom_mode_params;
+chanrec* ForceChan(chanrec* Ptr,ucrec &a,userrec* user, int created);
+
chanrec::chanrec()
{
strcpy(name,"");
}
if (Ptr->binarymodes & CM_INVITEONLY)
{
- MOD_RESULT = 0;
+ MOD_RESULT = 0;
+ irc::string xname(Ptr->name);
FOREACH_RESULT(OnCheckInvite(user, Ptr));
if (!MOD_RESULT)
{
log(DEBUG,"add_channel: channel is +i");
- if (user->IsInvited(Ptr->name))
+ if (user->IsInvited(xname))
{
/* user was invited to channel */
/* there may be an optional channel NOTICE here */
return NULL;
}
}
- user->RemoveInvite(Ptr->name);
+ user->RemoveInvite(xname);
}
if (Ptr->limit)
{