Revert all presence-related changes
This commit is contained in:
parent
72d36704fc
commit
c127b45b83
19 changed files with 58 additions and 396 deletions
|
@ -744,7 +744,6 @@ static void
|
|||
msg_client(int p_or_n, const char *command,
|
||||
struct Client *source_p, struct Client *target_p, const char *text)
|
||||
{
|
||||
const char *awaymsg;
|
||||
int do_floodcount = 0;
|
||||
|
||||
if(MyClient(source_p))
|
||||
|
@ -789,9 +788,9 @@ msg_client(int p_or_n, const char *command,
|
|||
return;
|
||||
}
|
||||
|
||||
if(MyConnect(source_p) && (p_or_n != NOTICE) && target_p->user && (awaymsg = get_metadata(target_p, "away")) != NULL)
|
||||
if(MyConnect(source_p) && (p_or_n != NOTICE) && target_p->user && target_p->user->away)
|
||||
sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY),
|
||||
target_p->name, awaymsg);
|
||||
target_p->name, target_p->user->away);
|
||||
|
||||
if(MyClient(target_p))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue