1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2004 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;
31 void WriteOpers(char* text, ...);
32 void log(int level, char *text, ...);
33 void Write(int sock,char *text, ...);
34 void WriteServ(int sock, char* text, ...);
35 void WriteFrom(int sock, userrec *user,char* text, ...);
36 void WriteTo(userrec *source, userrec *dest,char *data, ...);
37 void WriteChannel(chanrec* Ptr, userrec* user, char* text, ...);
38 void ChanExceptSender(chanrec* Ptr, userrec* user, char* text, ...);
39 int common_channels(userrec *u, userrec *u2);
40 void WriteCommon(userrec *u, char* text, ...);
41 void WriteCommonExcept(userrec *u, char* text, ...);
42 void WriteWallOps(userrec *source, bool local_only, char* text, ...);
43 int isnick(const char *n);
44 userrec* Find(std::string nick);
45 chanrec* FindChan(const char* chan);
46 char* cmode(userrec *user, chanrec *chan);
47 std::string getservername();
48 std::string getnetworkname();
49 std::string getadminname();
50 std::string getadminemail();
51 std::string getadminnick();
52 void readfile(file_cache &F, const char* fname);
53 int ModeDefiend(char c, int i);