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 /** Debug levels for use with InspIRCd::Log()
41 /* I'm not entirely happy with this, the ## before 'args' is a g++ extension.
42 * The problem is that if you #define log(l, x, args...) and then call it
43 * with only two parameters, you get do_log(l, x, ), which is a syntax error...
44 * The ## tells g++ to remove the trailing comma...
45 * If this is ever an issue, we can just have an #ifndef GCC then #define log(a...) do_log(a)
47 #define STRINGIFY2(x) #x
48 #define STRINGIFY(x) STRINGIFY2(x)
49 #define log(l, x, args...) InspIRCd::Log(l, __FILE__ ":" STRINGIFY(__LINE__) ": " x, ##args)
51 void Error(int status);
52 void ShowMOTD(userrec *user);
53 void ShowRULES(userrec *user);
54 bool AllModulesReportReady(userrec* user);
55 bool IsValidChannelName(const char *);