]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/globals.h
Added '@' (WALLOPS) link token
[user/henk/code/inspircd.git] / include / globals.h
1 /*
2
3
4 */
5
6
7 #ifndef __WORLD_H
8 #define __WORLD_H
9
10 // include the common header files
11
12 #include <typeinfo>
13 #include <iostream>
14 #include <string>
15 #include <deque>
16 #include "users.h"
17 #include "channels.h"
18
19 typedef std::deque<std::string> file_cache;
20
21 void WriteOpers(char* text, ...);
22 void log(int level, char *text, ...);
23 void Write(int sock,char *text, ...);
24 void WriteServ(int sock, char* text, ...);
25 void WriteFrom(int sock, userrec *user,char* text, ...);
26 void WriteTo(userrec *source, userrec *dest,char *data, ...);
27 void WriteChannel(chanrec* Ptr, userrec* user, char* text, ...);
28 void ChanExceptSender(chanrec* Ptr, userrec* user, char* text, ...);
29 int common_channels(userrec *u, userrec *u2);
30 void WriteCommon(userrec *u, char* text, ...);
31 void WriteCommonExcept(userrec *u, char* text, ...);
32 void WriteWallOps(userrec *source, bool local_only, char* text, ...);
33 int isnick(const char *n);
34 userrec* Find(std::string nick);
35 chanrec* FindChan(const char* chan);
36 char* cmode(userrec *user, chanrec *chan);
37 std::string getservername();
38 std::string getnetworkname();
39 std::string getadminname();
40 std::string getadminemail();
41 std::string getadminnick();
42 void readfile(file_cache &F, const char* fname);
43 int ModeDefiend(char c, int i);
44
45 #endif