]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/globals.h
Updated header comments
[user/henk/code/inspircd.git] / include / globals.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  Inspire is copyright (C) 2002-2004 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
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);
54
55 #endif