Use sendto_one_numeric() with the new AWAY numerics.
This commit is contained in:
parent
f28d832416
commit
e85075ec02
1 changed files with 2 additions and 3 deletions
|
@ -89,8 +89,7 @@ m_away(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
||||||
free_away(source_p);
|
free_away(source_p);
|
||||||
}
|
}
|
||||||
if(MyConnect(source_p))
|
if(MyConnect(source_p))
|
||||||
sendto_one(source_p, form_str(RPL_UNAWAY),
|
sendto_one_numeric(source_p, RPL_UNAWAY, form_str(RPL_UNAWAY));
|
||||||
me.name, source_p->name);
|
|
||||||
return 0;
|
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))
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue