diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-01 21:08:56 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-01 21:08:56 +0000 |
commit | 8d6a1a7177ccbb822872fa5a758f5c5c948cec2e (patch) | |
tree | ccdc6f8902dd64d6da0e7441d0312a45697e420c /modules/m_testline.c | |
parent | 5f1a24388ef9e957923bfd57711dd7448abb824b (diff) |
- flesh out new *line database handling
- simplify temporary bans
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1628 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_testline.c')
-rw-r--r-- | modules/m_testline.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/m_testline.c b/modules/m_testline.c index 2d26658..36c0cd3 100644 --- a/modules/m_testline.c +++ b/modules/m_testline.c @@ -122,8 +122,8 @@ mo_testline(struct Client *client_p, struct Client *source_p, else sendto_one(source_p, form_str(RPL_TESTLINE), me.name, source_p->name, - IsConfTemporary(aconf) ? 'd' : 'D', - IsConfTemporary(aconf) ? ((aconf->hold - CurrentTime) / 60) + aconf->hold ? 'd' : 'D', + aconf->hold ? ((aconf->hold - CurrentTime) / 60) : 0L, aconf->host, aconf->reason); } @@ -155,8 +155,8 @@ mo_testline(struct Client *client_p, struct Client *source_p, { sendto_one(source_p, form_str(RPL_TESTLINE), me.name, source_p->name, - IsConfTemporary(aconf) ? 'k' : 'K', - IsConfTemporary(aconf) ? ((aconf->hold - CurrentTime) / 60) + aconf->hold ? 'k' : 'K', + aconf->hold ? ((aconf->hold - CurrentTime) / 60) : 0L, userhost, aconf->reason? aconf->reason : "No reason"); ++matches; |