mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-09-19 14:19:57 +00:00
Compare commits
4 Commits
7731bfa4e0
...
bb3893d36c
| Author | SHA1 | Date | |
|---|---|---|---|
| bb3893d36c | |||
|
|
fe57449f6c | ||
|
|
c725adaa09 | ||
|
|
0ba523d071 |
@@ -126,7 +126,21 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
|
||||
if (ctcp_check (sess, nick, word, word_eol, word[4] + ctcp_offset))
|
||||
goto generic;
|
||||
|
||||
inbound_action (sess, to, nick, ip, msg + 7, FALSE, tags_data->identified, tags_data);
|
||||
{
|
||||
gboolean private_fromme = !serv->p_cmp (nick, serv->nick) && !is_channel (serv, to);
|
||||
|
||||
if (private_fromme)
|
||||
{
|
||||
session *target = find_dialog (serv, to);
|
||||
|
||||
if (target)
|
||||
sess = target;
|
||||
else if (serv->front_session)
|
||||
sess = serv->front_session;
|
||||
}
|
||||
|
||||
inbound_action (sess, to, nick, ip, msg + 7, private_fromme, tags_data->identified, tags_data);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1368,7 +1368,7 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[],
|
||||
{
|
||||
if (ignore_check (word[1], IG_PRIV))
|
||||
return;
|
||||
if (serv->have_echo_message && !serv->p_cmp (nick, serv->nick))
|
||||
if (!serv->p_cmp (nick, serv->nick))
|
||||
{
|
||||
session *target_sess = find_dialog (serv, to);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user