X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/70ea02ebd6189d71223254d2638f7a3a3f3f56e8..b2c208be091670e3c5259eba77187bae6ac6eece:/modules/m_testline.c diff --git a/modules/m_testline.c b/modules/m_testline.c index 46985bb3..0eb1fcb6 100644 --- a/modules/m_testline.c +++ b/modules/m_testline.c @@ -46,11 +46,11 @@ static int mo_testgecos(struct Client *, struct Client *, int, const char **); struct Message testline_msgtab = { "TESTLINE", 0, 0, 0, MFLG_SLOW, - {mg_unreg, mg_ignore, mg_ignore, mg_ignore, mg_ignore, {mo_testline, 2}} + {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_testline, 2}} }; struct Message testgecos_msgtab = { "TESTGECOS", 0, 0, 0, MFLG_SLOW, - {mg_unreg, mg_ignore, mg_ignore, mg_ignore, mg_ignore, {mo_testgecos, 2}} + {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_testgecos, 2}} }; mapi_clist_av1 testline_clist[] = { &testline_msgtab, &testgecos_msgtab, NULL }; @@ -149,14 +149,14 @@ mo_testline(struct Client *client_p, struct Client *source_p, int parc, const ch sendto_one(source_p, form_str(RPL_TESTLINE), me.name, source_p->name, '!', - duration / 60, + duration / 60L, host, "Reject cache"); if(aconf == NULL && (duration = is_throttle_ip((struct sockaddr *)&ip))) sendto_one(source_p, form_str(RPL_TESTLINE), me.name, source_p->name, '!', - duration / 60, + duration / 60L, host, "Throttled"); } @@ -218,7 +218,7 @@ mo_testline(struct Client *client_p, struct Client *source_p, int parc, const ch if(aconf && aconf->status & CONF_CLIENT) { sendto_one_numeric(source_p, RPL_STATSILINE, form_str(RPL_STATSILINE), - aconf->name, EmptyString(aconf->spasswd) ? "" : aconf->spasswd, + aconf->info.name, EmptyString(aconf->spasswd) ? "" : aconf->spasswd, show_iline_prefix(source_p, aconf, aconf->user), aconf->host, aconf->port, aconf->className); return 0;