]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/helperfuncs.h
Fixed to not allow :Abc NICK Abc, where the case of the old and new nick are *identical*
[user/henk/code/inspircd.git] / include / helperfuncs.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
6  *                       E-mail:
7  *                <brain@chatspike.net>
8  *                <Craig@chatspike.net>
9  *
10  * Written by Craig Edwards, Craig McLure, and others.
11  * This program is free but copyrighted software; see
12  *            the file COPYING for details.
13  *
14  * ---------------------------------------------------
15  */
16
17 #ifndef _HELPER_H_
18 #define _HELPER_H_
19
20 #include "dynamic.h"
21 #include "base.h"
22 #include "ctables.h"
23 #include "users.h"
24 #include "channels.h"
25 #include "typedefs.h"
26 #include <string>
27 #include <deque>
28 #include <sstream>
29
30 void log(int level,char *text, ...);
31 void readfile(file_cache &F, const char* fname);
32 void Write(int sock,char *text, ...);
33 void WriteServ(int sock, char* text, ...);
34 void WriteFrom(int sock, userrec *user,char* text, ...);
35 void WriteTo(userrec *source, userrec *dest,char *data, ...);
36 void WriteChannel(chanrec* Ptr, userrec* user, char* text, ...);
37 void WriteChannelLocal(chanrec* Ptr, userrec* user, char* text, ...);
38 void WriteChannelWithServ(char* ServName, chanrec* Ptr, char* text, ...);
39 void ChanExceptSender(chanrec* Ptr, userrec* user, char* text, ...);
40 std::string GetServerDescription(char* servername);
41 void WriteCommon(userrec *u, char* text, ...);
42 void WriteCommonExcept(userrec *u, char* text, ...);
43 void WriteOpers(char* text, ...);
44 void WriteMode(const char* modes, int flags, const char* text, ...);
45 void NoticeAll(userrec *source, bool local_only, char* text, ...);
46 void ServerNoticeAll(char* text, ...);
47 void ServerPrivmsgAll(char* text, ...);
48 void WriteWallOps(userrec *source, bool local_only, char* text, ...);
49 void strlower(char *n);
50 userrec* Find(std::string nick);
51 chanrec* FindChan(const char* chan);
52 long GetMaxBans(char* name);
53 void purge_empty_chans(userrec* u);
54 char* chanmodes(chanrec *chan);
55 void userlist(userrec *user,chanrec *c);
56 int usercount_i(chanrec *c);
57 int usercount(chanrec *c);
58 char* Passwd(userrec *user);
59 bool IsDenied(userrec *user);
60 void send_error(char *s);
61 void Error(int status);
62 int usercnt(void);
63 int registered_usercount(void);
64 int usercount_invisible(void);
65 int usercount_opers(void);
66 int usercount_unknown(void);
67 long chancount(void);
68 long local_count();
69 void ShowMOTD(userrec *user);
70 void ShowRULES(userrec *user);
71 bool AllModulesReportReady(userrec* user);
72 bool DirValid(char* dirandfile);
73 std::string GetFullProgDir(char** argv, int argc);
74
75 #endif