diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-19 01:27:44 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-19 01:27:44 +0000 |
commit | bf4193e8a3333843da243b9bce6bb01c96cd110d (patch) | |
tree | a7331449f766c047f39978d2d2c4ee2f765b471d /include/inspircd.h | |
parent | 7a51b2bed1cdc0e6c2522f2b2d10f3f787ff677d (diff) |
added mode.h/mode.cpp and seperated mode functions into it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@666 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspircd.h')
-rw-r--r-- | include/inspircd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 866c545d4..40e878b63 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -71,6 +71,8 @@ typedef std::deque<std::string> file_cache; +typedef void (handlerfunc) (char**, int, userrec*); + /* prototypes */ int InspIRCd(void); int InitConfig(void); @@ -91,6 +93,9 @@ void ChanExceptSender(chanrec* Ptr, userrec* user, char* text, ...); void WriteCommon(userrec *u, char* text, ...); void WriteCommonExcept(userrec *u, char* text, ...); void WriteWallOps(userrec *source, bool local_only, char* text, ...); +void WriteChannelLocal(chanrec* Ptr, userrec* user, char* text, ...); +void WriteChannelWithServ(char* ServerName, chanrec* Ptr, userrec* user, char* text, ...); +char* chanmodes(chanrec *chan); userrec* Find(std::string nick); chanrec* FindChan(const char* chan); std::string getservername(); @@ -111,6 +116,7 @@ void kill_link(userrec *user,const char* r); int usercount(chanrec *c); void call_handler(const char* commandname,char **parameters, int pcnt, userrec *user); long GetRevision(); +int loop_call(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins); // mesh network functions |