00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __WORLD_H
00018 #define __WORLD_H
00019
00020
00021
00022 #include <typeinfo>
00023 #include <iostream>
00024 #include <string>
00025 #include <deque>
00026 #include "users.h"
00027 #include "channels.h"
00028
00029 typedef std::deque<std::string> file_cache;
00030
00031 void WriteOpers(char* text, ...);
00032 void log(int level, char *text, ...);
00033 void Write(int sock,char *text, ...);
00034 void WriteServ(int sock, char* text, ...);
00035 void WriteFrom(int sock, userrec *user,char* text, ...);
00036 void WriteTo(userrec *source, userrec *dest,char *data, ...);
00037 void WriteChannel(chanrec* Ptr, userrec* user, char* text, ...);
00038 void ChanExceptSender(chanrec* Ptr, userrec* user, char* text, ...);
00039 int common_channels(userrec *u, userrec *u2);
00040 void WriteCommon(userrec *u, char* text, ...);
00041 void WriteCommonExcept(userrec *u, char* text, ...);
00042 void WriteWallOps(userrec *source, bool local_only, char* text, ...);
00043 int isnick(const char *n);
00044 userrec* Find(std::string nick);
00045 chanrec* FindChan(const char* chan);
00046 char* cmode(userrec *user, chanrec *chan);
00047 std::string getservername();
00048 std::string getnetworkname();
00049 std::string getadminname();
00050 std::string getadminemail();
00051 std::string getadminnick();
00052 void readfile(file_cache &F, const char* fname);
00053 int ModeDefiend(char c, int i);
00054
00055 #endif