1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
20 // include the common header files
29 typedef std::deque<std::string> file_cache;
30 typedef std::pair< std::string, std::string > KeyVal;
31 typedef std::vector< KeyVal > KeyValList;
32 typedef std::multimap< std::string, KeyValList > ConfigDataHash;
34 void WriteOpers(char* text, ...);
35 void log(int level, char *text, ...);
36 void Write(int sock,char *text, ...);
37 void WriteServ(int sock, char* text, ...);
38 void WriteFrom(int sock, userrec *user,char* text, ...);
39 void WriteTo(userrec *source, userrec *dest,char *data, ...);
40 void WriteChannel(chanrec* Ptr, userrec* user, char* text, ...);
41 void ChanExceptSender(chanrec* Ptr, userrec* user, char* text, ...);
42 int common_channels(userrec *u, userrec *u2);
43 void WriteCommon(userrec *u, char* text, ...);
44 void WriteCommonExcept(userrec *u, char* text, ...);
45 void WriteWallOps(userrec *source, bool local_only, char* text, ...);
46 int isnick(const char *n);
47 chanrec* FindChan(const char* chan);
48 void readfile(file_cache &F, const char* fname);