#include "parse.h"
#include "modules.h"
-static char *confopts(struct Client *source_p);
+static char *confopts(void);
-static int m_version(struct Client *, struct Client *, int, const char **);
-static int mo_version(struct Client *, struct Client *, int, const char **);
+static int m_version(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int mo_version(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
struct Message version_msgtab = {
- "VERSION", 0, 0, 0, MFLG_SLOW,
+ "VERSION", 0, 0, 0, 0,
{mg_unreg, {m_version, 0}, {mo_version, 0}, {mo_version, 0}, mg_ignore, {mo_version, 0}}
};
* parv[1] = remote server
*/
static int
-m_version(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_version(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
static time_t last_used = 0L;
#ifdef CUSTOM_BRANDING
PACKAGE_NAME "-" PACKAGE_VERSION,
#endif
- me.name, confopts(source_p), TS_CURRENT,
+ me.name, confopts(), TS_CURRENT,
ServerInfo.sid);
show_isupport(source_p);
* parv[1] = remote server
*/
static int
-mo_version(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+mo_version(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
if(hunt_server(client_p, source_p, ":%s VERSION :%s", 1, parc, parv) == HUNTED_ISME)
{
#ifdef CUSTOM_BRANDING
PACKAGE_NAME "-" PACKAGE_VERSION,
#endif
- me.name, confopts(source_p), TS_CURRENT,
+ me.name, confopts(), TS_CURRENT,
ServerInfo.sid);
show_isupport(source_p);
}
}
/* confopts()
- * input - client pointer
+ * input - none
* output - ircd.conf option string
* side effects - none
*/
static char *
-confopts(struct Client *source_p)
+confopts(void)
{
static char result[15];
char *p;