[Editors]
-Focused=2
+Focused=1
Order=7,3,2,6,25,24,-1,1,4,5,0
[Editor_0]
[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
[Editor_4]
Open=1
Top=0
-CursorCol=9
-CursorRow=232
-TopLine=198
+CursorCol=1
+CursorRow=88
+TopLine=60
LeftChar=1
[Editor_5]
LeftChar=1
[Editor_14]
-Open=0
+Open=1
Top=0
CursorCol=1
CursorRow=23
LeftChar=1
[Editor_15]
-Open=0
+Open=1
Top=0
CursorCol=1
CursorRow=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
time_t startup_time = time(NULL);
extern vector<Module*> modules;
+vector<string> module_names;
extern vector<ircd_module*> factory;
vector<int> fd_reap;
}
}
+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)
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)
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
{
{
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");
}