]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added support for /modules command
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 4 Apr 2004 00:58:20 +0000 (00:58 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 4 Apr 2004 00:58:20 +0000 (00:58 +0000)
Updated contributors

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@373 e03df62e-2008-0410-955e-edbf42e46eb7

src/InspIRCd.layout
src/inspircd.cpp
src/inspircd_io.cpp

index a8dc6851a151305698475685a02f69b0397b9ecf..f7ca3b7c060b6d4234a12a9ce8e37c271e47a56e 100644 (file)
@@ -1,5 +1,5 @@
 [Editors]
-Focused=2
+Focused=1
 Order=7,3,2,6,25,24,-1,1,4,5,0
 
 [Editor_0]
@@ -12,17 +12,17 @@ LeftChar=1
 
 [Editor_1]
 Open=1
-Top=0
-CursorCol=3
-CursorRow=2915
-TopLine=2911
+Top=1
+CursorCol=33
+CursorRow=4922
+TopLine=4883
 LeftChar=1
 
 [Editor_2]
 Open=1
-Top=1
-CursorCol=3
-CursorRow=17
+Top=0
+CursorCol=1
+CursorRow=87
 TopLine=1
 LeftChar=1
 
@@ -37,9 +37,9 @@ LeftChar=1
 [Editor_4]
 Open=1
 Top=0
-CursorCol=9
-CursorRow=232
-TopLine=198
+CursorCol=1
+CursorRow=88
+TopLine=60
 LeftChar=1
 
 [Editor_5]
@@ -115,7 +115,7 @@ TopLine=20
 LeftChar=1
 
 [Editor_14]
-Open=0
+Open=1
 Top=0
 CursorCol=1
 CursorRow=23
@@ -123,7 +123,7 @@ TopLine=1
 LeftChar=1
 
 [Editor_15]
-Open=0
+Open=1
 Top=0
 CursorCol=1
 CursorRow=1
@@ -165,10 +165,10 @@ LeftChar=1
 [Editor_20]
 Open=1
 Top=0
-CursorCol=2
-CursorRow=172
-TopLine=129
-LeftChar=2
+CursorCol=23
+CursorRow=149
+TopLine=408
+LeftChar=1
 
 [Editor_21]
 Open=0
index e825729f9dd3d7b91d24df0cb489fcebb765cd92..590daea9d4e24bc6d1119c6d2716a46360930943 100644 (file)
@@ -76,6 +76,7 @@ int DieDelay  =  5;
 time_t startup_time = time(NULL);
 
 extern vector<Module*> modules;
+vector<string> module_names;
 extern vector<ircd_module*> factory;
 vector<int> fd_reap;
 
@@ -3976,6 +3977,15 @@ void handle_trace(char **parameters, int pcnt, userrec *user)
        }
 }
 
+void handle_modules(char **parameters, int pcnt, userrec *user)
+{
+       for (int i = 0; i < module_names.size(); i++)
+       {
+                       Version V = modules[i]->GetVersion();
+                       WriteServ(user->fd,"900 0x%08lx %d.%d.%d.%d :%s",modules[i],V.Major,V.Minor,V.Revision,V.Build,module_names[i].c_str());
+       }
+}
+
 void handle_stats(char **parameters, int pcnt, userrec *user)
 {
        if (pcnt != 1)
@@ -4555,6 +4565,7 @@ void SetupCommandTable(void)
   createcommand("WHOWAS",handle_whowas,0,1);
   createcommand("CONNECT",handle_connect,'o',1);
   createcommand("SQUIT",handle_squit,'o',1);
+  createcommand("MODULES",handle_modules,'o',0);
 }
 
 void process_buffer(userrec *user)
@@ -4906,8 +4917,9 @@ int InspIRCd(void)
                if (factory[count]->factory)
                {
                        modules[count] = factory[count]->factory->CreateModule();
-                       /* save the module and the module's classfactory, if
+                       /* save the module and the module's classfactory, if
                         * this isnt done, random crashes can occur :/ */
+                       module_names.push_back(modfile);        
                }
                else
                {
index 885954881292ca34332a9c10fe3a255768ea2561..0fd69d5e0b04fdc0081cbde25e2930620e328c32 100644 (file)
@@ -50,9 +50,9 @@ void Start (void)
 {
   printf("\033[1;37mInspire Internet Relay Chat Server, compiled " __DATE__ " at " __TIME__ "\n");
   printf("(C) ChatSpike Development team.\033[0;37m\n\n");
-  printf("\033[1;37mDevelopers:\033[0;37m     Brain, FrostyCoolSlug, Raider, RD\n");
-  printf("\033[1;37mDocumentation:\033[0;37m  FrostyCoolSlug\n");
-  printf("\033[1;37mTesters:\033[0;37m        MrBOFH, piggles, Lord_Zathras, typobox43, CC\n");
+  printf("\033[1;37mDevelopers:\033[0;37m     Brain, FrostyCoolSlug, RD\n");
+  printf("\033[1;37mDocumentation:\033[0;37m  FrostyCoolSlug, w00t\n");
+  printf("\033[1;37mTesters:\033[0;37m        typobox43, piggles, Lord_Zathras, CC\n");
   printf("\033[1;37mName concept:\033[0;37m   Lord_Zathras\n\n");
 }