1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
30 /** Flags for use with log()
38 void log(int level,char *text, ...);
39 void readfile(file_cache &F, const char* fname);
41 void Write(int sock,char *text, ...);
42 void WriteServ(int sock, char* text, ...);
43 void WriteFrom(int sock, userrec *user,char* text, ...);
44 void WriteTo(userrec *source, userrec *dest,char *data, ...);
45 void WriteChannel(chanrec* Ptr, userrec* user, char* text, ...);
46 void WriteChannelLocal(chanrec* Ptr, userrec* user, char* text, ...);
47 void WriteChannelWithServ(char* ServName, chanrec* Ptr, char* text, ...);
48 void ChanExceptSender(chanrec* Ptr, userrec* user, char status, char* text, ...);
49 void WriteCommon(userrec *u, char* text, ...);
50 void WriteCommonExcept(userrec *u, char* text, ...);
51 void WriteOpers(const char* text, ...);
53 void Write_NoFormat(int sock,const char *text);
54 void WriteServ_NoFormat(int sock, const char* text);
55 void WriteFrom_NoFormat(int sock, userrec *user,const char* text);
56 void WriteTo_NoFormat(userrec *source, userrec *dest,const char *data);
57 void WriteChannel_NoFormat(chanrec* Ptr, userrec* user, const char* text);
58 void WriteChannelLocal_NoFormat(chanrec* Ptr, userrec* user, const char* text);
59 void WriteChannelWithServ_NoFormat(char* ServName, chanrec* Ptr, const char* text);
60 void ChanExceptSender_NoFormat(chanrec* Ptr, userrec* user, char status, const char* text);
61 void WriteCommon_NoFormat(userrec *u, const char* text);
62 void WriteCommonExcept_NoFormat(userrec *u, const char* text);
63 void WriteOpers_NoFormat(const char* text);
65 std::string GetServerDescription(char* servername);
66 void WriteMode(const char* modes, int flags, const char* text, ...);
67 void NoticeAll(userrec *source, bool local_only, char* text, ...);
68 void ServerNoticeAll(char* text, ...);
69 void ServerPrivmsgAll(char* text, ...);
70 void WriteWallOps(userrec *source, bool local_only, char* text, ...);
71 void strlower(char *n);
72 userrec* Find(const std::string &nick);
73 userrec* Find(const char* nick);
74 chanrec* FindChan(const char* chan);
75 long GetMaxBans(char* name);
76 void purge_empty_chans(userrec* u);
77 char* chanmodes(chanrec *chan, bool showkey);
78 void userlist(userrec *user,chanrec *c);
79 int usercount_i(chanrec *c);
80 int usercount(chanrec *c);
81 ConnectClass GetClass(userrec *user);
82 void send_error(char *s);
83 void Error(int status);
85 int registered_usercount(void);
86 int usercount_invisible(void);
87 int usercount_opers(void);
88 int usercount_unknown(void);
91 void ShowMOTD(userrec *user);
92 void ShowRULES(userrec *user);
93 bool AllModulesReportReady(userrec* user);
94 bool DirValid(char* dirandfile);
95 bool FileExists(const char* file);
96 char* CleanFilename(char* name);
97 std::string GetFullProgDir(char** argv, int argc);
98 int InsertMode(std::string &output, const char* modes, unsigned short section);
99 bool IsValidChannelName(const char *);
101 int charlcat(char* x,char y,int z);
102 bool charremove(char* mp, char remove);