Undo MAINT-3275 and send "do not disturb" message only once and if session does not already exist

Ansariel 2014-03-18 19:32:31 +01:00
parent fb0c1d4a93
commit 12e4a0fd75
1 changed files with 7 additions and 1 deletions

View File

@ -2768,7 +2768,10 @@ void process_improved_im(LLMessageSystem *msg, void **user_data)
// return a standard "do not disturb" message, but only do it to online IM
// (i.e. not other auto responses and not store-and-forward IM)
// <FS:Ansariel> Old "do not disturb" message behavior: only send once if session not open
if (!gIMMgr->hasSession(session_id))
{
// </FS:Ansariel>
// <FS:Ansariel> Log autoresponse notification after initial message
has_session = false;
@ -2808,6 +2811,9 @@ void process_improved_im(LLMessageSystem *msg, void **user_data)
session_id);
gAgent.sendReliableMessage();
// </FS:Ansariel> FS autoresponse feature
// <FS:Ansariel> Old "do not disturb" message behavior: only send once if session not open
}
// </FS:Ansariel>
// <FS:Ansariel> checkfor and process reqinfo
if (has_session)