]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/globals.h
WriteChannel* functions and ChanExceptSender* functions are now methods of chanrec...
[user/henk/code/inspircd.git] / include / globals.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
6  *                       E-mail:
7  *                <brain@chatspike.net>
8  *                <Craig@chatspike.net>
9  *     
10  * Written by Craig Edwards, Craig McLure, and others.
11  * This program is free but copyrighted software; see
12  *            the file COPYING for details.
13  *
14  * ---------------------------------------------------
15  */
16
17 #ifndef __WORLD_H
18 #define __WORLD_H
19
20 // include the common header files
21
22 #include <typeinfo>
23 #include <iostream>
24 #include <string>
25 #include <deque>
26 #include "users.h"
27 #include "channels.h"
28
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;
33
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 int common_channels(userrec *u, userrec *u2);
41 void WriteCommon(userrec *u, char* text, ...);
42 void WriteCommonExcept(userrec *u, char* text, ...);
43 void WriteWallOps(userrec *source, bool local_only, char* text, ...);
44 int isnick(const char *n);
45 chanrec* FindChan(const char* chan);
46 void readfile(file_cache &F, const char* fname);
47
48 #endif