Merge pull request #581 from orium/numeric-session-with-open-query
Session of numeric events passed to text_emit() for nicks with open query dialogs
This commit is contained in:
commit
b28734c4a8
|
@ -922,16 +922,21 @@ process_numeric (session * sess, int n,
|
||||||
}
|
}
|
||||||
|
|
||||||
def:
|
def:
|
||||||
if (is_channel (serv, word[4]))
|
|
||||||
{
|
{
|
||||||
session *realsess = find_channel (serv, word[4]);
|
session *sess;
|
||||||
if (!realsess)
|
|
||||||
realsess = serv->server_session;
|
if (is_channel (serv, word[4]))
|
||||||
EMIT_SIGNAL (XP_TE_SERVTEXT, realsess, text, word[1], word[2], NULL, 0);
|
{
|
||||||
} else
|
sess = find_channel (serv, word[4]);
|
||||||
{
|
if (!sess)
|
||||||
EMIT_SIGNAL (XP_TE_SERVTEXT, serv->server_session, text, word[1],
|
sess = serv->server_session;
|
||||||
word[2], NULL, 0);
|
}
|
||||||
|
else if ((sess=find_dialog (serv,word[4]))) /* user with an open dialog */
|
||||||
|
;
|
||||||
|
else
|
||||||
|
sess=serv->server_session;
|
||||||
|
|
||||||
|
EMIT_SIGNAL (XP_TE_SERVTEXT, sess, text, word[1], word[2], NULL, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue