Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

globals.h

Go to the documentation of this file.
00001 /*       +------------------------------------+
00002  *       | Inspire Internet Relay Chat Daemon |
00003  *       +------------------------------------+
00004  *
00005  *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
00006  *                       E-mail:
00007  *                <brain@chatspike.net>
00008  *                <Craig@chatspike.net>
00009  *     
00010  * Written by Craig Edwards, Craig McLure, and others.
00011  * This program is free but copyrighted software; see
00012  *            the file COPYING for details.
00013  *
00014  * ---------------------------------------------------
00015  */
00016 
00017 #ifndef __WORLD_H
00018 #define __WORLD_H
00019 
00020 // include the common header files
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

Generated on Thu Dec 15 11:14:14 2005 for InspIRCd by  doxygen 1.4.4-20050815