diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-01 13:16:37 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-01 13:16:37 +0000 |
commit | 206aa6907524c1f834ba23160a033fa6a8e2bb0b (patch) | |
tree | b28e4659a4697bf6ff133f06f6863fbdb20a9a2d /modules/m_testline.c | |
parent | 66b1fc152776ef824c291307dd7be93c0e2a9ad6 (diff) |
- klines, dlines, xlines, glines and resv now make use of the new database;
also, temporary *lines are now stored, so they're not lost after
restarting the ircd. This also applies to G-lines.
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1622 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_testline.c')
-rw-r--r-- | modules/m_testline.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/m_testline.c b/modules/m_testline.c index f9a8e67..2d26658 100644 --- a/modules/m_testline.c +++ b/modules/m_testline.c @@ -125,8 +125,7 @@ mo_testline(struct Client *client_p, struct Client *source_p, IsConfTemporary(aconf) ? 'd' : 'D', IsConfTemporary(aconf) ? ((aconf->hold - CurrentTime) / 60) : 0L, - aconf->host, aconf->reason, - aconf->oper_reason ? aconf->oper_reason : ""); + aconf->host, aconf->reason); } } @@ -159,8 +158,7 @@ mo_testline(struct Client *client_p, struct Client *source_p, IsConfTemporary(aconf) ? 'k' : 'K', IsConfTemporary(aconf) ? ((aconf->hold - CurrentTime) / 60) : 0L, - userhost, aconf->reason? aconf->reason : "No reason", - aconf->oper_reason ? aconf->oper_reason : ""); + userhost, aconf->reason? aconf->reason : "No reason"); ++matches; } } @@ -174,8 +172,7 @@ mo_testline(struct Client *client_p, struct Client *source_p, sendto_one(source_p, form_str(RPL_TESTLINE), me.name, source_p->name, 'Q', 0L, conf->name, - mconf->reason ? mconf->reason : "No reason", - mconf->oper_reason ? mconf->oper_reason : ""); + mconf->reason ? mconf->reason : "No reason");; ++matches; } @@ -215,8 +212,7 @@ mo_testgecos(struct Client *client_p, struct Client *source_p, const struct MatchItem *xconf = map_to_conf(conf); sendto_one(source_p, form_str(RPL_TESTLINE), me.name, source_p->name, 'X', 0L, - conf->name, xconf->reason ? xconf->reason : "X-lined", - xconf->oper_reason ? xconf->oper_reason : ""); + conf->name, xconf->reason ? xconf->reason : "X-lined"); } else sendto_one(source_p, form_str(RPL_NOTESTLINE), |