From e85075ec02309beec00eea4fd814e4a8710c1563 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 21 Apr 2008 20:26:23 -0500 Subject: [PATCH] Use sendto_one_numeric() with the new AWAY numerics. --- modules/m_away.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/m_away.c b/modules/m_away.c index cd4c89bd..6cd488d7 100644 --- a/modules/m_away.c +++ b/modules/m_away.c @@ -89,8 +89,7 @@ m_away(struct Client *client_p, struct Client *source_p, int parc, const char *p free_away(source_p); } if(MyConnect(source_p)) - sendto_one(source_p, form_str(RPL_UNAWAY), - me.name, source_p->name); + sendto_one_numeric(source_p, RPL_UNAWAY, form_str(RPL_UNAWAY)); return 0; } @@ -109,7 +108,7 @@ m_away(struct Client *client_p, struct Client *source_p, int parc, const char *p } if(MyConnect(source_p)) - sendto_one(source_p, form_str(RPL_NOWAWAY), me.name, source_p->name); + sendto_one_numeric(source_p, RPL_NOWAWAY, form_str(RPL_NOWAWAY)); return 0; }