]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/coremods/core_info/cmd_info.cpp
Update my name and email address.
[user/henk/code/inspircd.git] / src / coremods / core_info / cmd_info.cpp
1 /*
2  * InspIRCd -- Internet Relay Chat Daemon
3  *
4  *   Copyright (C) 2011 Jackmcbarn <jackmcbarn@jackmcbarn.no-ip.org>
5  *   Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
6  *   Copyright (C) 2007-2015 Robin Burchell <robin+git@viroteck.net>
7  *   Copyright (C) 2008 Thomas Stagner <aquanight@inspircd.org>
8  *
9  * This file is part of InspIRCd.  InspIRCd is free software: you can
10  * redistribute it and/or modify it under the terms of the GNU General Public
11  * License as published by the Free Software Foundation, version 2.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20  */
21
22
23 #include "inspircd.h"
24 #include "core_info.h"
25
26 CommandInfo::CommandInfo(Module* parent)
27         : ServerTargetCommand(parent, "INFO")
28 {
29         Penalty = 4;
30         syntax = "[<servername>]";
31 }
32
33 static const char* const lines[] = {
34         "                   -/\\- \002InspIRCd\002 -\\/-",
35         "                 November 2002 - Present",
36         " ",
37         "\002Core Developers\002:",
38         "    Attila Molnar,          Attila,     <attilamolnar@hush.com>",
39         "    Sadie Powell,           SadieCat,   <sadie@witchery.services>",
40         " ",
41         "\002Former Developers\002:",
42         "    Oliver Lupton,          Om,         <om@inspircd.org>",
43         "    John Brooks,            Special,    <special@inspircd.org>",
44         "    Dennis Friis,           peavey,     <peavey@inspircd.org>",
45         "    Thomas Stagner,         aquanight,  <aquanight@inspircd.org>",
46         "    Uli Schlachter,         psychon,    <psychon@inspircd.org>",
47         "    Matt Smith,             dz,         <dz@inspircd.org>",
48         "    Daniel De Graaf,        danieldg,   <danieldg@inspircd.org>",
49         " ",
50         "\002Founding Developers\002:",
51         "    Craig Edwards,          Brain,      <brain@inspircd.org>",
52         "    Craig McLure,           Craig,      <craig@inspircd.org>",
53         "    Robin Burchell,         w00t,       <w00t@inspircd.org>",
54         " ",
55         "\002Active Contributors\002:",
56         "    Adam           linuxdaemon     Sheogorath",
57         " ",
58         "\002Former Contributors\002:",
59         "   dmb             Zaba            skenmy         GreenReaper",
60         "   Dan             Jason           satmd          owine",
61         "   Adremelech      John2           jilles         HiroP",
62         "   eggy            Bricker         AnMaster       djGrrr",
63         "   nenolod         Quension        praetorian     pippijn",
64         "   CC              jamie           typobox43      Burlex",
65         "   Stskeeps        ThaPrince       BuildSmart     Thunderhacker",
66         "   Skip            LeaChim         Majic          MacGyver",
67         "   Namegduf        Ankit           Phoenix        Taros",
68         "   jackmcbarn      ChrisTX         Shawn          Shutter",
69         " ",
70         "\002Thanks To\002:",
71         "   Asmo            Brik            fraggeln       genius3000",
72         " ",
73         " Best experienced with: \002An IRC client\002",
74         NULL
75 };
76
77 /** Handle /INFO
78  */
79 CmdResult CommandInfo::Handle(User* user, const Params& parameters)
80 {
81         if (parameters.size() > 0 && !irc::equals(parameters[0], ServerInstance->Config->ServerName))
82                 return CMD_SUCCESS;
83
84         int i=0;
85         while (lines[i])
86                 user->WriteRemoteNumeric(RPL_INFO, lines[i++]);
87
88         user->WriteRemoteNumeric(RPL_ENDOFINFO, "End of /INFO list");
89         return CMD_SUCCESS;
90 }