diff --git a/include/ctables.h b/include/ctables.h index 5926f3a2a..3666718b6 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -20,6 +20,9 @@ #include "inspircd_config.h" #include "inspircd.h" #include "base.h" +#include "typedefs.h" + +typedef void (handlerfunc) (char**, int, userrec*); /** A structure that defines a command */ diff --git a/include/typedefs.h b/include/typedefs.h index 3b11df2da..0a625b1d2 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -25,7 +25,6 @@ typedef std::deque command_table; typedef std::vector servernamelist; typedef std::vector ExtModeList; typedef ExtModeList::iterator ExtModeListIter; -typedef void (handlerfunc) (char**, int, userrec*); typedef std::deque file_cache; #endif diff --git a/src/channels.cpp b/src/channels.cpp index 59cfb18bd..f1c01b407 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -73,6 +73,8 @@ using namespace std; std::vector custom_mode_params; +chanrec* ForceChan(chanrec* Ptr,ucrec &a,userrec* user, int created); + chanrec::chanrec() { strcpy(name,"");