From 7d3966bc9bd9e9ab7833b4ecb0751671bdd085e7 Mon Sep 17 00:00:00 2001 From: Apple Dash Date: Sat, 9 Aug 2014 18:53:18 -0400 Subject: [PATCH] m_away: Fix potential weird behavior with an empty return --- modules/m_away.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/m_away.c b/modules/m_away.c index 44ebb80..2cfc5fd 100644 --- a/modules/m_away.c +++ b/modules/m_away.c @@ -97,7 +97,7 @@ m_away(struct Client *client_p, struct Client *source_p, int parc, const char *p source_p->localClient->next_away > rb_current_time()) { sendto_one(source_p, form_str(RPL_LOAD2HI), me.name, source_p->name, "AWAY"); - return; + return 0; } if(source_p->localClient->next_away < rb_current_time() - ConfigFileEntry.away_interval)