]> jfr.im git - solanum.git/commitdiff
Use sendto_one_numeric() with the new AWAY numerics.
authorWilliam Pitcock <redacted>
Tue, 22 Apr 2008 01:26:23 +0000 (20:26 -0500)
committerWilliam Pitcock <redacted>
Tue, 22 Apr 2008 01:26:23 +0000 (20:26 -0500)
modules/m_away.c

index cd4c89bdb4d1e79e4aacd59d5bc6a0ffc8c0bd98..6cd488d71948430e94fc96fb9d1031e3135ff5ef 100644 (file)
@@ -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;
 }