1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2005 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 void log(int level,char *text, ...);
31 void readfile(file_cache &F, const char* fname);
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 WriteChannelLocal(chanrec* Ptr, userrec* user, char* text, ...);
39 void WriteChannelWithServ(char* ServName, chanrec* Ptr, char* text, ...);
40 void ChanExceptSender(chanrec* Ptr, userrec* user, char* text, ...);
42 void Write_NoFormat(int sock,const char *text);
43 void WriteServ_NoFormat(int sock, const char* text);
44 void WriteFrom_NoFormat(int sock, userrec *user,const char* text);
45 void WriteTo_NoFormat(userrec *source, userrec *dest,const char *data);
46 void WriteChannel_NoFormat(chanrec* Ptr, userrec* user, const char* text);
47 void WriteChannelLocal_NoFormat(chanrec* Ptr, userrec* user, const char* text);
48 void WriteChannelWithServ_NoFormat(char* ServName, chanrec* Ptr, const char* text);
49 void ChanExceptSender_NoFormat(chanrec* Ptr, userrec* user, const char* text);
50 void WriteCommon_NoFormat(userrec *u, const char* text);
51 void WriteCommonExcept_NoFormat(userrec *u, const char* text);
53 std::string GetServerDescription(char* servername);
54 void WriteCommon(userrec *u, char* text, ...);
55 void WriteCommonExcept(userrec *u, char* text, ...);
56 void WriteOpers(char* text, ...);
57 void WriteMode(const char* modes, int flags, const char* text, ...);
58 void NoticeAll(userrec *source, bool local_only, char* text, ...);
59 void ServerNoticeAll(char* text, ...);
60 void ServerPrivmsgAll(char* text, ...);
61 void WriteWallOps(userrec *source, bool local_only, char* text, ...);
62 void strlower(char *n);
63 userrec* Find(std::string nick);
64 chanrec* FindChan(const char* chan);
65 long GetMaxBans(char* name);
66 void purge_empty_chans(userrec* u);
67 char* chanmodes(chanrec *chan);
68 void userlist(userrec *user,chanrec *c);
69 int usercount_i(chanrec *c);
70 int usercount(chanrec *c);
71 char* Passwd(userrec *user);
72 bool IsDenied(userrec *user);
73 void send_error(char *s);
74 void Error(int status);
76 int registered_usercount(void);
77 int usercount_invisible(void);
78 int usercount_opers(void);
79 int usercount_unknown(void);
82 void ShowMOTD(userrec *user);
83 void ShowRULES(userrec *user);
84 bool AllModulesReportReady(userrec* user);
85 bool DirValid(char* dirandfile);
86 std::string GetFullProgDir(char** argv, int argc);