summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-04 00:58:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-04 00:58:20 +0000
commit6d853575a51230b5b8905933423ed8cd94058435 (patch)
treef47357b13c40c3704a3d16d2c759e59552c471df
parentae5ff9b009565dd91743950d4c41a501f2d3ad27 (diff)
Added support for /modules command
Updated contributors git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@373 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/InspIRCd.layout34
-rw-r--r--src/inspircd.cpp14
-rw-r--r--src/inspircd_io.cpp6
3 files changed, 33 insertions, 21 deletions
diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout
index a8dc6851a..f7ca3b7c0 100644
--- a/src/InspIRCd.layout
+++ b/src/InspIRCd.layout
@@ -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
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index e825729f9..590daea9d 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -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
{
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index 885954881..0fd69d5e0 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -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");
}