diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-01-15 19:01:16 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-01-15 19:01:16 +0000 |
commit | b0f035dd5ef59e0f9096b5e716411bbb7b5afa24 (patch) | |
tree | f67a90dc9058f7a66728c42614052c6f608a3f7f /modules | |
parent | 786674f029a6f650c55461d84f93be7c462085e8 (diff) |
- 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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_away.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |