#include "../core/schedule.h"
#include "../lib/base64.h"
#include "../core/modules.h"
+#include "../lib/version.h"
#include "control.h"
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
+MODULE_VERSION("$Id: control.c 663 2006-05-16 17:27:36Z newserv $");
+
nick *hooknick;
nick *mynick;
ptr = lsmod(i);
controlreply((nick *)sender,"Module");
while (ptr != NULL) {
- controlreply((nick *)sender,"%s", ptr);
+ const char *ver = lsmodver(i);
+ controlreply((nick *)sender,"%s%s%s%s", ptr, ver?" (":"", ver?ver:"", ver?")":"");
ptr = lsmod(++i);
}
} else {