#include "support.h"
#include "config.h"
#include "control.h"
-#include "dynloader.h"
+#include "serv_extensions.h"
#include "room_ops.h"
#include "user_ops.h"
#include "policy.h"
* Fetch data for MRTG
*/
void cmd_mrtg(char *argbuf) {
- char which[SIZ];
+ char which[32];
- extract(which, argbuf, 0);
+ extract_token(which, argbuf, 0, '|', sizeof which);
if (!strcasecmp(which, "users")) {
mrtg_users();
}
else {
cprintf("%d Unrecognized keyword '%s'\n",
- ERROR+ILLEGAL_VALUE, which);
+ ERROR + ILLEGAL_VALUE, which);
}
}
-char *Dynamic_Module_Init(void)
+char *serv_mrtg_init(void)
{
CtdlRegisterProtoHook(cmd_mrtg, "MRTG", "Supply stats to MRTG");
return "$Id$";