From d7324a55fab95b4f51672b701f2dd9cc0836abf8 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 19 May 2007 18:08:57 +0000 Subject: Space indents must die. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7049 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/channels.h | 16 ++++++------ include/commands/cmd_admin.h | 12 ++++----- include/commands/cmd_away.h | 12 ++++----- include/commands/cmd_clearcache.h | 12 ++++----- include/commands/cmd_commands.h | 12 ++++----- include/commands/cmd_connect.h | 12 ++++----- include/commands/cmd_die.h | 12 ++++----- include/commands/cmd_eline.h | 12 ++++----- include/commands/cmd_gline.h | 12 ++++----- include/commands/cmd_info.h | 12 ++++----- include/commands/cmd_invite.h | 12 ++++----- include/commands/cmd_ison.h | 12 ++++----- include/commands/cmd_join.h | 12 ++++----- include/commands/cmd_kick.h | 12 ++++----- include/commands/cmd_kill.h | 12 ++++----- include/commands/cmd_kline.h | 12 ++++----- include/commands/cmd_links.h | 12 ++++----- include/commands/cmd_list.h | 12 ++++----- include/commands/cmd_loadmodule.h | 12 ++++----- include/commands/cmd_lusers.h | 12 ++++----- include/commands/cmd_map.h | 12 ++++----- include/commands/cmd_mode.h | 12 ++++----- include/commands/cmd_modules.h | 12 ++++----- include/commands/cmd_motd.h | 12 ++++----- include/commands/cmd_names.h | 12 ++++----- include/commands/cmd_nick.h | 12 ++++----- include/commands/cmd_notice.h | 12 ++++----- include/commands/cmd_oper.h | 12 ++++----- include/commands/cmd_part.h | 12 ++++----- include/commands/cmd_pass.h | 12 ++++----- include/commands/cmd_ping.h | 12 ++++----- include/commands/cmd_pong.h | 12 ++++----- include/commands/cmd_privmsg.h | 12 ++++----- include/commands/cmd_qline.h | 12 ++++----- include/commands/cmd_quit.h | 12 ++++----- include/commands/cmd_rehash.h | 12 ++++----- include/commands/cmd_reloadmodule.h | 12 ++++----- include/commands/cmd_restart.h | 12 ++++----- include/commands/cmd_rules.h | 12 ++++----- include/commands/cmd_server.h | 12 ++++----- include/commands/cmd_squit.h | 12 ++++----- include/commands/cmd_stats.h | 12 ++++----- include/commands/cmd_summon.h | 12 ++++----- include/commands/cmd_time.h | 12 ++++----- include/commands/cmd_topic.h | 12 ++++----- include/commands/cmd_trace.h | 12 ++++----- include/commands/cmd_unloadmodule.h | 12 ++++----- include/commands/cmd_user.h | 12 ++++----- include/commands/cmd_userhost.h | 12 ++++----- include/commands/cmd_users.h | 12 ++++----- include/commands/cmd_version.h | 12 ++++----- include/commands/cmd_wallops.h | 12 ++++----- include/commands/cmd_whois.h | 12 ++++----- include/commands/cmd_whowas.h | 8 +++--- include/commands/cmd_zline.h | 12 ++++----- include/dns.h | 18 ++++++------- include/inspircd.h | 52 ++++++++++++++++++------------------- include/inspsocket.h | 4 +-- include/socketengine.h | 2 +- include/xline.h | 9 ++++--- 60 files changed, 373 insertions(+), 372 deletions(-) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index 8cee75b9c..950275974 100644 --- a/include/channels.h +++ b/include/channels.h @@ -87,9 +87,9 @@ typedef std::map CustomModeList; /** used to hold a channel and a users modes on that channel, e.g. +v, +h, +o */ enum UserChannelModes { - UCMODE_OP = 1, - UCMODE_VOICE = 2, - UCMODE_HOP = 4 + UCMODE_OP = 1, + UCMODE_VOICE = 2, + UCMODE_HOP = 4 }; class InspIRCd; @@ -258,10 +258,10 @@ class CoreExport chanrec : public Extensible */ void AddVoicedUser(userrec* user); - /** Delete a user pointer to the internal reference list + /** Delete a user pointer to the internal reference list * @param user The user to delete * @return number of users left on the channel after deletion of the user - */ + */ unsigned long DelUser(userrec* user); /** Delete a user pointer to the internal reference list of opped users @@ -394,7 +394,7 @@ class CoreExport chanrec : public Extensible /** Write to all users on a channel except a list of users, using va_args for text * @param user User whos details to prefix the line with, and to omit from receipt of the message * @param serversource If this parameter is true, use the local server name as the source of the text, otherwise, - * use the nick!user@host of the user. + * use the nick!user@host of the user. * @param status The status of the users to write to, e.g. '@' or '%'. Use a value of 0 to write to everyone * @param except_list A list of users NOT to send the text to * @param text A printf-style format string which builds the output line without prefix @@ -406,7 +406,7 @@ class CoreExport chanrec : public Extensible * Internally, this calls WriteAllExcept(). * @param user User whos details to prefix the line with, and to omit from receipt of the message * @param serversource If this parameter is true, use the local server name as the source of the text, otherwise, - * use the nick!user@host of the user. + * use the nick!user@host of the user. * @param status The status of the users to write to, e.g. '@' or '%'. Use a value of 0 to write to everyone * @param text A std::string containing the output line without prefix */ @@ -415,7 +415,7 @@ class CoreExport chanrec : public Extensible /** Write to all users on a channel except a list of users, using std::string for text * @param user User whos details to prefix the line with, and to omit from receipt of the message * @param serversource If this parameter is true, use the local server name as the source of the text, otherwise, - * use the nick!user@host of the user. + * use the nick!user@host of the user. * @param status The status of the users to write to, e.g. '@' or '%'. Use a value of 0 to write to everyone * @param except_list A list of users NOT to send the text to * @param text A std::string containing the output line without prefix diff --git a/include/commands/cmd_admin.h b/include/commands/cmd_admin.h index 0c2cfaa7b..ea919ab98 100644 --- a/include/commands/cmd_admin.h +++ b/include/commands/cmd_admin.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -26,8 +26,8 @@ class cmd_admin : public command_t { public: - cmd_admin (InspIRCd* Instance) : command_t(Instance,"ADMIN",0,0) { syntax = "[]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_admin (InspIRCd* Instance) : command_t(Instance,"ADMIN",0,0) { syntax = "[]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_away.h b/include/commands/cmd_away.h index a18527c32..b2ff1ad40 100644 --- a/include/commands/cmd_away.h +++ b/include/commands/cmd_away.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_away : public command_t { public: - cmd_away (InspIRCd* Instance) : command_t(Instance,"AWAY",0,0) { syntax = "[]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_away (InspIRCd* Instance) : command_t(Instance,"AWAY",0,0) { syntax = "[]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_clearcache.h b/include/commands/cmd_clearcache.h index 5f9e943d6..9af8fcb39 100644 --- a/include/commands/cmd_clearcache.h +++ b/include/commands/cmd_clearcache.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -26,8 +26,8 @@ class cmd_clearcache : public command_t { public: - cmd_clearcache (InspIRCd* Instance) : command_t(Instance,"CLEARCACHE",'o',0) { } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_clearcache (InspIRCd* Instance) : command_t(Instance,"CLEARCACHE",'o',0) { } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_commands.h b/include/commands/cmd_commands.h index 55818d286..217a8caaf 100644 --- a/include/commands/cmd_commands.h +++ b/include/commands/cmd_commands.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_commands : public command_t { public: - cmd_commands (InspIRCd* Instance) : command_t(Instance,"COMMANDS",0,0) { } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_commands (InspIRCd* Instance) : command_t(Instance,"COMMANDS",0,0) { } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_connect.h b/include/commands/cmd_connect.h index 0c38a732f..0233b4f9d 100644 --- a/include/commands/cmd_connect.h +++ b/include/commands/cmd_connect.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_connect : public command_t { public: - cmd_connect (InspIRCd* Instance) : command_t(Instance,"CONNECT",'o',1) { syntax = " []"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_connect (InspIRCd* Instance) : command_t(Instance,"CONNECT",'o',1) { syntax = " []"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_die.h b/include/commands/cmd_die.h index 6b8e85db5..7e19dd7df 100644 --- a/include/commands/cmd_die.h +++ b/include/commands/cmd_die.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_die : public command_t { public: - cmd_die (InspIRCd* Instance) : command_t(Instance,"DIE",'o',1) { syntax = ""; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_die (InspIRCd* Instance) : command_t(Instance,"DIE",'o',1) { syntax = ""; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_eline.h b/include/commands/cmd_eline.h index 68920c870..c53bd7816 100644 --- a/include/commands/cmd_eline.h +++ b/include/commands/cmd_eline.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_eline : public command_t { public: - cmd_eline (InspIRCd* Instance) : command_t(Instance,"ELINE",'o',1) { syntax = " [ :]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_eline (InspIRCd* Instance) : command_t(Instance,"ELINE",'o',1) { syntax = " [ :]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_gline.h b/include/commands/cmd_gline.h index 9023209be..816ff6ae4 100644 --- a/include/commands/cmd_gline.h +++ b/include/commands/cmd_gline.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_gline : public command_t { public: - cmd_gline (InspIRCd* Instance) : command_t(Instance,"GLINE",'o',1) { syntax = " [ :]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_gline (InspIRCd* Instance) : command_t(Instance,"GLINE",'o',1) { syntax = " [ :]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_info.h b/include/commands/cmd_info.h index 3fc4c9e03..974c44136 100644 --- a/include/commands/cmd_info.h +++ b/include/commands/cmd_info.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_info : public command_t { public: - cmd_info (InspIRCd* Instance) : command_t(Instance,"INFO",0,0) { syntax = "[]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_info (InspIRCd* Instance) : command_t(Instance,"INFO",0,0) { syntax = "[]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_invite.h b/include/commands/cmd_invite.h index 3f09c3ee3..749aa5023 100644 --- a/include/commands/cmd_invite.h +++ b/include/commands/cmd_invite.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_invite : public command_t { public: - cmd_invite (InspIRCd* Instance) : command_t(Instance,"INVITE",0,0) { syntax = "[ ]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_invite (InspIRCd* Instance) : command_t(Instance,"INVITE",0,0) { syntax = "[ ]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_ison.h b/include/commands/cmd_ison.h index 0239730c2..7061a9ab9 100644 --- a/include/commands/cmd_ison.h +++ b/include/commands/cmd_ison.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_ison : public command_t { public: - cmd_ison (InspIRCd* Instance) : command_t(Instance,"ISON",0,0) { syntax = " {nick}"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_ison (InspIRCd* Instance) : command_t(Instance,"ISON",0,0) { syntax = " {nick}"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_join.h b/include/commands/cmd_join.h index 372d22623..79a9b7fae 100644 --- a/include/commands/cmd_join.h +++ b/include/commands/cmd_join.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_join : public command_t { public: - cmd_join (InspIRCd* Instance) : command_t(Instance,"JOIN",0,1) { syntax = "{,} {{,}}"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_join (InspIRCd* Instance) : command_t(Instance,"JOIN",0,1) { syntax = "{,} {{,}}"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_kick.h b/include/commands/cmd_kick.h index afba4de9b..312944cde 100644 --- a/include/commands/cmd_kick.h +++ b/include/commands/cmd_kick.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_kick : public command_t { public: - cmd_kick (InspIRCd* Instance) : command_t(Instance,"KICK",0,2) { syntax = " {,} []"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_kick (InspIRCd* Instance) : command_t(Instance,"KICK",0,2) { syntax = " {,} []"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_kill.h b/include/commands/cmd_kill.h index 10930fabf..8558e50b3 100644 --- a/include/commands/cmd_kill.h +++ b/include/commands/cmd_kill.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_kill : public command_t { public: - cmd_kill (InspIRCd* Instance) : command_t(Instance,"KILL",'o',2) { syntax = " "; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_kill (InspIRCd* Instance) : command_t(Instance,"KILL",'o',2) { syntax = " "; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_kline.h b/include/commands/cmd_kline.h index 3ed5b31cd..f38d9e6bb 100644 --- a/include/commands/cmd_kline.h +++ b/include/commands/cmd_kline.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_kline : public command_t { public: - cmd_kline (InspIRCd* Instance) : command_t(Instance,"KLINE",'o',1) { syntax = " [ :]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_kline (InspIRCd* Instance) : command_t(Instance,"KLINE",'o',1) { syntax = " [ :]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_links.h b/include/commands/cmd_links.h index d42d28464..fa4970196 100644 --- a/include/commands/cmd_links.h +++ b/include/commands/cmd_links.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_links : public command_t { public: - cmd_links (InspIRCd* Instance) : command_t(Instance,"LINKS",0,0) { } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_links (InspIRCd* Instance) : command_t(Instance,"LINKS",0,0) { } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_list.h b/include/commands/cmd_list.h index 5a4a7b0b8..254cfe34e 100644 --- a/include/commands/cmd_list.h +++ b/include/commands/cmd_list.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_list : public command_t { public: - cmd_list (InspIRCd* Instance) : command_t(Instance,"LIST",0,0) { } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_list (InspIRCd* Instance) : command_t(Instance,"LIST",0,0) { } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_loadmodule.h b/include/commands/cmd_loadmodule.h index e3e598e7d..bbdeebfee 100644 --- a/include/commands/cmd_loadmodule.h +++ b/include/commands/cmd_loadmodule.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_loadmodule : public command_t { public: - cmd_loadmodule (InspIRCd* Instance) : command_t(Instance,"LOADMODULE",'o',1) { syntax = ""; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_loadmodule (InspIRCd* Instance) : command_t(Instance,"LOADMODULE",'o',1) { syntax = ""; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_lusers.h b/include/commands/cmd_lusers.h index 918676bb5..c639263af 100644 --- a/include/commands/cmd_lusers.h +++ b/include/commands/cmd_lusers.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_lusers : public command_t { public: - cmd_lusers (InspIRCd* Instance) : command_t(Instance,"LUSERS",0,0) { } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_lusers (InspIRCd* Instance) : command_t(Instance,"LUSERS",0,0) { } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_map.h b/include/commands/cmd_map.h index c1d16e47b..76e98be72 100644 --- a/include/commands/cmd_map.h +++ b/include/commands/cmd_map.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_map : public command_t { public: - cmd_map (InspIRCd* Instance) : command_t(Instance,"MAP",0,0) { } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_map (InspIRCd* Instance) : command_t(Instance,"MAP",0,0) { } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_mode.h b/include/commands/cmd_mode.h index 52d104d8f..a33301a34 100644 --- a/include/commands/cmd_mode.h +++ b/include/commands/cmd_mode.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -26,8 +26,8 @@ class cmd_mode : public command_t { public: - cmd_mode (InspIRCd* Instance) : command_t(Instance,"MODE",0,1) { syntax = " {}"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_mode (InspIRCd* Instance) : command_t(Instance,"MODE",0,1) { syntax = " {}"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_modules.h b/include/commands/cmd_modules.h index 937d319e8..a05e7d599 100644 --- a/include/commands/cmd_modules.h +++ b/include/commands/cmd_modules.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_modules : public command_t { public: - cmd_modules (InspIRCd* Instance) : command_t(Instance,"MODULES",0,0) { syntax = "[debug]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_modules (InspIRCd* Instance) : command_t(Instance,"MODULES",0,0) { syntax = "[debug]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_motd.h b/include/commands/cmd_motd.h index 3b9e149cf..44e033970 100644 --- a/include/commands/cmd_motd.h +++ b/include/commands/cmd_motd.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -30,8 +30,8 @@ class cmd_motd : public command_t { public: - cmd_motd (InspIRCd* Instance) : command_t(Instance,"MOTD",0,0) { syntax = "[]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_motd (InspIRCd* Instance) : command_t(Instance,"MOTD",0,0) { syntax = "[]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_names.h b/include/commands/cmd_names.h index 57480af2b..d6ce1280c 100644 --- a/include/commands/cmd_names.h +++ b/include/commands/cmd_names.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_names : public command_t { public: - cmd_names (InspIRCd* Instance) : command_t(Instance,"NAMES",0,0) { syntax = "{{,}}"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_names (InspIRCd* Instance) : command_t(Instance,"NAMES",0,0) { syntax = "{{,}}"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_nick.h b/include/commands/cmd_nick.h index 2e8b198d0..a2682a371 100644 --- a/include/commands/cmd_nick.h +++ b/include/commands/cmd_nick.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_nick : public command_t { public: - cmd_nick (InspIRCd* Instance) : command_t(Instance,"NICK",0,1,true) { syntax = ""; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_nick (InspIRCd* Instance) : command_t(Instance,"NICK",0,1,true) { syntax = ""; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_notice.h b/include/commands/cmd_notice.h index 37b04431c..cb2acdf19 100644 --- a/include/commands/cmd_notice.h +++ b/include/commands/cmd_notice.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_notice : public command_t { public: - cmd_notice (InspIRCd* Instance) : command_t(Instance,"NOTICE",0,2) { syntax = "{,} "; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_notice (InspIRCd* Instance) : command_t(Instance,"NOTICE",0,2) { syntax = "{,} "; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_oper.h b/include/commands/cmd_oper.h index 117ff1bf2..9a06a0922 100644 --- a/include/commands/cmd_oper.h +++ b/include/commands/cmd_oper.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -29,8 +29,8 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist); class cmd_oper : public command_t { public: - cmd_oper (InspIRCd* Instance) : command_t(Instance,"OPER",0,2) { syntax = " "; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_oper (InspIRCd* Instance) : command_t(Instance,"OPER",0,2) { syntax = " "; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_part.h b/include/commands/cmd_part.h index 42688b551..0130d0a4f 100644 --- a/include/commands/cmd_part.h +++ b/include/commands/cmd_part.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_part : public command_t { public: - cmd_part (InspIRCd* Instance) : command_t(Instance,"PART",0,1) { syntax = "{,} []"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_part (InspIRCd* Instance) : command_t(Instance,"PART",0,1) { syntax = "{,} []"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_pass.h b/include/commands/cmd_pass.h index ac6cd6abf..b6dbbac21 100644 --- a/include/commands/cmd_pass.h +++ b/include/commands/cmd_pass.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -30,8 +30,8 @@ class cmd_pass : public command_t { public: - cmd_pass (InspIRCd* Instance) : command_t(Instance,"PASS",0,1,true) { syntax = ""; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_pass (InspIRCd* Instance) : command_t(Instance,"PASS",0,1,true) { syntax = ""; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_ping.h b/include/commands/cmd_ping.h index 1922bb301..2e733829b 100644 --- a/include/commands/cmd_ping.h +++ b/include/commands/cmd_ping.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_ping : public command_t { public: - cmd_ping (InspIRCd* Instance) : command_t(Instance,"PING",0,1) { syntax = " [:]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_ping (InspIRCd* Instance) : command_t(Instance,"PING",0,1) { syntax = " [:]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_pong.h b/include/commands/cmd_pong.h index dd7869dde..8329072f9 100644 --- a/include/commands/cmd_pong.h +++ b/include/commands/cmd_pong.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -28,8 +28,8 @@ class cmd_pong : public command_t { public: - cmd_pong (InspIRCd* Instance) : command_t(Instance,"PONG",0,1) { syntax = ""; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_pong (InspIRCd* Instance) : command_t(Instance,"PONG",0,1) { syntax = ""; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_privmsg.h b/include/commands/cmd_privmsg.h index fa9bea9da..76bdb331e 100644 --- a/include/commands/cmd_privmsg.h +++ b/include/commands/cmd_privmsg.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_privmsg : public command_t { public: - cmd_privmsg (InspIRCd* Instance) : command_t(Instance,"PRIVMSG",0,2) { syntax = "{,} "; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_privmsg (InspIRCd* Instance) : command_t(Instance,"PRIVMSG",0,2) { syntax = "{,} "; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_qline.h b/include/commands/cmd_qline.h index 66e60b138..816f599a2 100644 --- a/include/commands/cmd_qline.h +++ b/include/commands/cmd_qline.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_qline : public command_t { public: - cmd_qline (InspIRCd* Instance) : command_t(Instance,"QLINE",'o',1) { syntax = " [ :]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_qline (InspIRCd* Instance) : command_t(Instance,"QLINE",'o',1) { syntax = " [ :]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_quit.h b/include/commands/cmd_quit.h index 222c90d63..c9813757f 100644 --- a/include/commands/cmd_quit.h +++ b/include/commands/cmd_quit.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_quit : public command_t { public: - cmd_quit (InspIRCd* Instance) : command_t(Instance,"QUIT",0,0,true) { syntax = "[]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_quit (InspIRCd* Instance) : command_t(Instance,"QUIT",0,0,true) { syntax = "[]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_rehash.h b/include/commands/cmd_rehash.h index c3cd6392e..9f85fe26b 100644 --- a/include/commands/cmd_rehash.h +++ b/include/commands/cmd_rehash.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_rehash : public command_t { public: - cmd_rehash (InspIRCd* Instance) : command_t(Instance,"REHASH",'o',0) { syntax = "[]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_rehash (InspIRCd* Instance) : command_t(Instance,"REHASH",'o',0) { syntax = "[]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_reloadmodule.h b/include/commands/cmd_reloadmodule.h index 358858821..c4e62c552 100644 --- a/include/commands/cmd_reloadmodule.h +++ b/include/commands/cmd_reloadmodule.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_reloadmodule : public command_t { public: - cmd_reloadmodule (InspIRCd* Instance) : command_t(Instance,"RELOADMODULE",'o',1) { syntax = ""; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_reloadmodule (InspIRCd* Instance) : command_t(Instance,"RELOADMODULE",'o',1) { syntax = ""; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_restart.h b/include/commands/cmd_restart.h index c504fb8fe..2622bd5dc 100644 --- a/include/commands/cmd_restart.h +++ b/include/commands/cmd_restart.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -30,8 +30,8 @@ class cmd_restart : public command_t { public: - cmd_restart (InspIRCd* Instance) : command_t(Instance,"RESTART",'o',1) { syntax = ""; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_restart (InspIRCd* Instance) : command_t(Instance,"RESTART",'o',1) { syntax = ""; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_rules.h b/include/commands/cmd_rules.h index f251d8ced..fbdd4a10e 100644 --- a/include/commands/cmd_rules.h +++ b/include/commands/cmd_rules.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -30,8 +30,8 @@ class cmd_rules : public command_t { public: - cmd_rules (InspIRCd* Instance) : command_t(Instance,"RULES",0,0) { syntax = "[]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_rules (InspIRCd* Instance) : command_t(Instance,"RULES",0,0) { syntax = "[]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_server.h b/include/commands/cmd_server.h index 85460e7e7..be458defd 100644 --- a/include/commands/cmd_server.h +++ b/include/commands/cmd_server.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_server : public command_t { public: - cmd_server (InspIRCd* Instance) : command_t(Instance,"SERVER",0,0) { } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_server (InspIRCd* Instance) : command_t(Instance,"SERVER",0,0) { } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_squit.h b/include/commands/cmd_squit.h index 96e0365f4..0f4201276 100644 --- a/include/commands/cmd_squit.h +++ b/include/commands/cmd_squit.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -30,8 +30,8 @@ class cmd_squit : public command_t { public: - cmd_squit (InspIRCd* Instance) : command_t(Instance,"SQUIT",'o',1) { syntax = " []"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_squit (InspIRCd* Instance) : command_t(Instance,"SQUIT",'o',1) { syntax = " []"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_stats.h b/include/commands/cmd_stats.h index 0aa98e359..e004a1fd6 100644 --- a/include/commands/cmd_stats.h +++ b/include/commands/cmd_stats.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -30,8 +30,8 @@ DllExport void DoStats(InspIRCd* Instance, char statschar, userrec* user, string class cmd_stats : public command_t { public: - cmd_stats (InspIRCd* Instance) : command_t(Instance,"STATS",0,1) { syntax = " []"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_stats (InspIRCd* Instance) : command_t(Instance,"STATS",0,1) { syntax = " []"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_summon.h b/include/commands/cmd_summon.h index 823a48ba8..6804694f0 100644 --- a/include/commands/cmd_summon.h +++ b/include/commands/cmd_summon.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -30,8 +30,8 @@ class cmd_summon : public command_t { public: - cmd_summon (InspIRCd* Instance) : command_t(Instance,"SUMMON",0,0) { } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_summon (InspIRCd* Instance) : command_t(Instance,"SUMMON",0,0) { } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_time.h b/include/commands/cmd_time.h index c065d2c1f..b84b853db 100644 --- a/include/commands/cmd_time.h +++ b/include/commands/cmd_time.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_time : public command_t { public: - cmd_time (InspIRCd* Instance) : command_t(Instance,"TIME",0,0) { syntax = "[]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_time (InspIRCd* Instance) : command_t(Instance,"TIME",0,0) { syntax = "[]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_topic.h b/include/commands/cmd_topic.h index 95e52592d..00edcadf6 100644 --- a/include/commands/cmd_topic.h +++ b/include/commands/cmd_topic.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_topic : public command_t { public: - cmd_topic (InspIRCd* Instance) : command_t(Instance,"TOPIC",0,1) { syntax = " []"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_topic (InspIRCd* Instance) : command_t(Instance,"TOPIC",0,1) { syntax = " []"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_trace.h b/include/commands/cmd_trace.h index 69e68f126..bb91f7293 100644 --- a/include/commands/cmd_trace.h +++ b/include/commands/cmd_trace.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_trace : public command_t { public: - cmd_trace (InspIRCd* Instance) : command_t(Instance,"TRACE",'o',0) { syntax = "[]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_trace (InspIRCd* Instance) : command_t(Instance,"TRACE",'o',0) { syntax = "[]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_unloadmodule.h b/include/commands/cmd_unloadmodule.h index 4d642c0a0..cc16f313d 100644 --- a/include/commands/cmd_unloadmodule.h +++ b/include/commands/cmd_unloadmodule.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_unloadmodule : public command_t { public: - cmd_unloadmodule (InspIRCd* Instance) : command_t(Instance,"UNLOADMODULE",'o',1) { syntax = ""; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_unloadmodule (InspIRCd* Instance) : command_t(Instance,"UNLOADMODULE",'o',1) { syntax = ""; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_user.h b/include/commands/cmd_user.h index 3e5d4c213..44dfa483f 100644 --- a/include/commands/cmd_user.h +++ b/include/commands/cmd_user.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_user : public command_t { public: - cmd_user (InspIRCd* Instance) : command_t(Instance,"USER",0,4,true) { syntax = " "; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_user (InspIRCd* Instance) : command_t(Instance,"USER",0,4,true) { syntax = " "; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_userhost.h b/include/commands/cmd_userhost.h index 7505ca8ea..7f46f85f3 100644 --- a/include/commands/cmd_userhost.h +++ b/include/commands/cmd_userhost.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_userhost : public command_t { public: - cmd_userhost (InspIRCd* Instance) : command_t(Instance,"USERHOST",0,1) { syntax = "{,}"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_userhost (InspIRCd* Instance) : command_t(Instance,"USERHOST",0,1) { syntax = "{,}"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_users.h b/include/commands/cmd_users.h index 3091ef1c3..78d44429f 100644 --- a/include/commands/cmd_users.h +++ b/include/commands/cmd_users.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -30,8 +30,8 @@ class cmd_users : public command_t { public: - cmd_users (InspIRCd* Instance) : command_t(Instance,"USERS",0,0) { } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_users (InspIRCd* Instance) : command_t(Instance,"USERS",0,0) { } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_version.h b/include/commands/cmd_version.h index dba3b2380..42ac968ea 100644 --- a/include/commands/cmd_version.h +++ b/include/commands/cmd_version.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_version : public command_t { public: - cmd_version (InspIRCd* Instance) : command_t(Instance,"VERSION",0,0) { syntax = "[]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_version (InspIRCd* Instance) : command_t(Instance,"VERSION",0,0) { syntax = "[]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_wallops.h b/include/commands/cmd_wallops.h index fe3367cd8..775e1c116 100644 --- a/include/commands/cmd_wallops.h +++ b/include/commands/cmd_wallops.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_wallops : public command_t { public: - cmd_wallops (InspIRCd* Instance) : command_t(Instance,"WALLOPS",'o',1) { syntax = ""; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_wallops (InspIRCd* Instance) : command_t(Instance,"WALLOPS",'o',1) { syntax = ""; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_whois.h b/include/commands/cmd_whois.h index cd1f75c51..af8228c74 100644 --- a/include/commands/cmd_whois.h +++ b/include/commands/cmd_whois.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -30,8 +30,8 @@ DllExport void do_whois(InspIRCd* Instance, userrec* user, userrec* dest,unsigne class cmd_whois : public command_t { public: - cmd_whois (InspIRCd* Instance) : command_t(Instance,"WHOIS",0,1) { syntax = "{,}"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_whois (InspIRCd* Instance) : command_t(Instance,"WHOIS",0,1) { syntax = "{,}"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h index 8b31c3e7a..2568a0986 100644 --- a/include/commands/cmd_whowas.h +++ b/include/commands/cmd_whowas.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ diff --git a/include/commands/cmd_zline.h b/include/commands/cmd_zline.h index 9c57bcdca..122fc165a 100644 --- a/include/commands/cmd_zline.h +++ b/include/commands/cmd_zline.h @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -27,8 +27,8 @@ class cmd_zline : public command_t { public: - cmd_zline (InspIRCd* Instance) : command_t(Instance,"ZLINE",'o',1) { syntax = " [ :]"; } - CmdResult Handle(const char** parameters, int pcnt, userrec *user); + cmd_zline (InspIRCd* Instance) : command_t(Instance,"ZLINE",'o',1) { syntax = " [ :]"; } + CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; #endif diff --git a/include/dns.h b/include/dns.h index d823a04a8..3deb7d3c8 100644 --- a/include/dns.h +++ b/include/dns.h @@ -155,14 +155,14 @@ struct ResourceRecord; */ enum QueryType { - DNS_QUERY_NONE = 0, /* Uninitialized Query */ - DNS_QUERY_A = 1, /* 'A' record: an ipv4 address */ - DNS_QUERY_CNAME = 5, /* 'CNAME' record: An alias */ - DNS_QUERY_PTR = 12, /* 'PTR' record: a hostname */ - DNS_QUERY_AAAA = 28, /* 'AAAA' record: an ipv6 address */ - - DNS_QUERY_PTR4 = 0xFFFD, /* Force 'PTR' to use IPV4 scemantics */ - DNS_QUERY_PTR6 = 0xFFFE, /* Force 'PTR' to use IPV6 scemantics */ + DNS_QUERY_NONE = 0, /* Uninitialized Query */ + DNS_QUERY_A = 1, /* 'A' record: an ipv4 address */ + DNS_QUERY_CNAME = 5, /* 'CNAME' record: An alias */ + DNS_QUERY_PTR = 12, /* 'PTR' record: a hostname */ + DNS_QUERY_AAAA = 28, /* 'AAAA' record: an ipv6 address */ + + DNS_QUERY_PTR4 = 0xFFFD, /* Force 'PTR' to use IPV4 scemantics */ + DNS_QUERY_PTR6 = 0xFFFE, /* Force 'PTR' to use IPV6 scemantics */ }; #ifdef IPV6 @@ -368,7 +368,7 @@ class CoreExport DNS : public EventHandler public: - /** + /** * Server address being used currently */ int socketfamily; diff --git a/include/inspircd.h b/include/inspircd.h index fa9b8ed56..29493d322 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -6,7 +6,7 @@ * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -446,7 +446,7 @@ class CoreExport InspIRCd : public classbase */ int unregistered_count; - /** List of server names we've seen. + /** List of server names we've seen. */ servernamelist servernames; @@ -907,26 +907,26 @@ class CoreExport InspIRCd : public classbase * @param socket The file descriptor of a user * @return A pointer to the user if the user exists locally on this descriptor */ - userrec* FindDescriptor(int socket); + userrec* FindDescriptor(int socket); /** Add a new mode to this server's mode parser * @param mh The modehandler to add * @param modechar The mode character this modehandler handles * @return True if the mode handler was added */ - bool AddMode(ModeHandler* mh, const unsigned char modechar); + bool AddMode(ModeHandler* mh, const unsigned char modechar); /** Add a new mode watcher to this server's mode parser * @param mw The modewatcher to add * @return True if the modewatcher was added */ - bool AddModeWatcher(ModeWatcher* mw); + bool AddModeWatcher(ModeWatcher* mw); /** Delete a mode watcher from this server's mode parser * @param mw The modewatcher to delete * @return True if the modewatcher was deleted */ - bool DelModeWatcher(ModeWatcher* mw); + bool DelModeWatcher(ModeWatcher* mw); /** Add a dns Resolver class to this server's active set * @param r The resolver to add @@ -944,13 +944,13 @@ class CoreExport InspIRCd : public classbase * the resolver class you pass it after this call, as depending upon * the request given, the object may be deleted! */ - bool AddResolver(Resolver* r, bool cached); + bool AddResolver(Resolver* r, bool cached); /** Add a command to this server's command parser * @param f A command_t command handler object to add * @throw ModuleException Will throw ModuleExcption if the command already exists */ - void AddCommand(command_t *f); + void AddCommand(command_t *f); /** Send a modechange. * The parameters provided are identical to that sent to the @@ -959,7 +959,7 @@ class CoreExport InspIRCd : public classbase * @param pcnt The number of items you have given in the first parameter * @param user The user to send error messages to */ - void SendMode(const char **parameters, int pcnt, userrec *user); + void SendMode(const char **parameters, int pcnt, userrec *user); /** Match two strings using pattern matching. * This operates identically to the global function match(), @@ -968,7 +968,7 @@ class CoreExport InspIRCd : public classbase * @param sliteral The literal string to match against * @param spattern The pattern to match against. CIDR and globs are supported. */ - bool MatchText(const std::string &sliteral, const std::string &spattern); + bool MatchText(const std::string &sliteral, const std::string &spattern); /** Call the handler for a given command. * @param commandname The command whos handler you wish to call @@ -977,7 +977,7 @@ class CoreExport InspIRCd : public classbase * @param user The user to execute the command as * @return True if the command handler was called successfully */ - bool CallCommandHandler(const std::string &commandname, const char** parameters, int pcnt, userrec* user); + bool CallCommandHandler(const std::string &commandname, const char** parameters, int pcnt, userrec* user); /** Return true if the command is a module-implemented command and the given parameters are valid for it * @param parameters The mode parameters @@ -985,7 +985,7 @@ class CoreExport InspIRCd : public classbase * @param user The user to test-execute the command as * @return True if the command handler is a module command, and there are enough parameters and the user has permission to the command */ - bool IsValidModuleCommand(const std::string &commandname, int pcnt, userrec* user); + bool IsValidModuleCommand(const std::string &commandname, int pcnt, userrec* user); /** Add a gline and apply it * @param duration How long the line should last @@ -993,7 +993,7 @@ class CoreExport InspIRCd : public classbase * @param reason The reason for the line * @param hostmask The hostmask to set the line against */ - void AddGLine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask); + void AddGLine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask); /** Add a qline and apply it * @param duration How long the line should last @@ -1001,7 +1001,7 @@ class CoreExport InspIRCd : public classbase * @param reason The reason for the line * @param nickname The nickmask to set the line against */ - void AddQLine(long duration, const std::string &source, const std::string &reason, const std::string &nickname); + void AddQLine(long duration, const std::string &source, const std::string &reason, const std::string &nickname); /** Add a zline and apply it * @param duration How long the line should last @@ -1009,7 +1009,7 @@ class CoreExport InspIRCd : public classbase * @param reason The reason for the line * @param ipaddr The ip-mask to set the line against */ - void AddZLine(long duration, const std::string &source, const std::string &reason, const std::string &ipaddr); + void AddZLine(long duration, const std::string &source, const std::string &reason, const std::string &ipaddr); /** Add a kline and apply it * @param duration How long the line should last @@ -1017,7 +1017,7 @@ class CoreExport InspIRCd : public classbase * @param reason The reason for the line * @param hostmask The hostmask to set the line against */ - void AddKLine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask); + void AddKLine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask); /** Add an eline * @param duration How long the line should last @@ -1025,60 +1025,60 @@ class CoreExport InspIRCd : public classbase * @param reason The reason for the line * @param hostmask The hostmask to set the line against */ - void AddELine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask); + void AddELine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask); /** Delete a gline * @param hostmask The gline to delete * @return True if the item was removed */ - bool DelGLine(const std::string &hostmask); + bool DelGLine(const std::string &hostmask); /** Delete a qline * @param nickname The qline to delete * @return True if the item was removed */ - bool DelQLine(const std::string &nickname); + bool DelQLine(const std::string &nickname); /** Delete a zline * @param ipaddr The zline to delete * @return True if the item was removed */ - bool DelZLine(const std::string &ipaddr); + bool DelZLine(const std::string &ipaddr); /** Delete a kline * @param hostmask The kline to delete * @return True if the item was removed */ - bool DelKLine(const std::string &hostmask); + bool DelKLine(const std::string &hostmask); /** Delete an eline * @param hostmask The kline to delete * @return True if the item was removed */ - bool DelELine(const std::string &hostmask); + bool DelELine(const std::string &hostmask); /** Return true if the given parameter is a valid nick!user\@host mask * @param mask A nick!user\@host masak to match against * @return True i the mask is valid */ - bool IsValidMask(const std::string &mask); + bool IsValidMask(const std::string &mask); /** Rehash the local server */ - void RehashServer(); + void RehashServer(); /** Return the channel whos index number matches that provided * @param The index number of the channel to fetch * @return A channel record, or NUll if index < 0 or index >= InspIRCd::ChannelCount() */ - chanrec* GetChannelIndex(long index); + chanrec* GetChannelIndex(long index); /** Dump text to a user target, splitting it appropriately to fit * @param User the user to dump the text to * @param LinePrefix text to prefix each complete line with * @param TextStream the text to send to the user */ - void DumpText(userrec* User, const std::string &LinePrefix, stringstream &TextStream); + void DumpText(userrec* User, const std::string &LinePrefix, stringstream &TextStream); /** Check if the given nickmask matches too many users, send errors to the given user * @param nick A nickmask to match against diff --git a/include/inspsocket.h b/include/inspsocket.h index 03acad4a1..3e65bf677 100644 --- a/include/inspsocket.h +++ b/include/inspsocket.h @@ -6,7 +6,7 @@ * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -103,7 +103,7 @@ class CoreExport InspSocket : public EventHandler * This value is true if the * socket has timed out. */ - bool timeout; + bool timeout; /** * Socket input buffer, used by read(). The class which diff --git a/include/socketengine.h b/include/socketengine.h index 0ff6e89ed..330e3911c 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -111,7 +111,7 @@ class CoreExport EventHandler : public Extensible * If this function is unimplemented, the base class * will return false. * - * NOTE: You cannot set both Readable() and + * NOTE: You cannot set both Readable() and * Writeable() to true. If you wish to receive * a write event for your object, you must call * SocketEngine::WantWrite() instead. This will diff --git a/include/xline.h b/include/xline.h index 0b4ef6e12..478a02125 100644 --- a/include/xline.h +++ b/include/xline.h @@ -122,9 +122,9 @@ class CoreExport GLine : public XLine class CoreExport ELine : public XLine { public: - /** Hostmask (ident@host) to match against - * May contain wildcards. - */ + /** Hostmask (ident@host) to match against + * May contain wildcards. + */ ELine(time_t s_time, long d, const char* src, const char* re, const char* ident, const char* host) : XLine(s_time, d, src, re) { identmask = strdup(ident); @@ -138,7 +138,7 @@ class CoreExport ELine : public XLine } char* identmask; - char* hostmask; + char* hostmask; }; /** ZLine class @@ -442,3 +442,4 @@ class CoreExport XLineManager }; #endif + -- cgit v1.2.3