From b0f035dd5ef59e0f9096b5e716411bbb7b5afa24 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 15 Jan 2013 19:01:16 +0000 Subject: - Rebuilt conf_parser.c - Minor logic fixes to recently added away-notify capability git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1749 82007160-df01-0410-b94d-b575c5fd34c7 --- modules/m_away.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/m_away.c b/modules/m_away.c index 926ff21..644d1d5 100644 --- a/modules/m_away.c +++ b/modules/m_away.c @@ -80,7 +80,7 @@ m_away(struct Client *client_p, struct Client *source_p, source_p->localClient->last_away = CurrentTime; sendto_one(source_p, form_str(RPL_NOWAWAY), me.name, source_p->name); - if (strncmp(source_p->away, parv[1], sizeof(source_p->away) - 1)) + if (!strncmp(source_p->away, parv[1], sizeof(source_p->away) - 1)) return; strlcpy(source_p->away, parv[1], sizeof(source_p->away)); @@ -122,7 +122,7 @@ ms_away(struct Client *client_p, struct Client *source_p, return; } - if (strncmp(source_p->away, parv[1], sizeof(source_p->away) - 1)) + if (!strncmp(source_p->away, parv[1], sizeof(source_p->away) - 1)) return; strlcpy(source_p->away, parv[1], sizeof(source_p->away)); -- cgit