aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-09-05 02:51:05 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-09-05 02:51:05 +0200
commitcb480b4c71d70ed19ea67a7594e1353b16ed897a (patch)
tree2c00e20e60c74d6db022d85df4363231c5e14554
parent59cc4236940d2f9ba6438ac053d2862075a575cd (diff)
downloadxK-cb480b4c71d70ed19ea67a7594e1353b16ed897a.tar.gz
xK-cb480b4c71d70ed19ea67a7594e1353b16ed897a.tar.xz
xK-cb480b4c71d70ed19ea67a7594e1353b16ed897a.zip
xC: show orphan outcoming actions differently
It's hard to think of anything actually good here. This would be an exceptionally rare thing to do, anyway.
-rw-r--r--xC.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xC.c b/xC.c
index 5ed60a7..6bba09a 100644
--- a/xC.c
+++ b/xC.c
@@ -4162,6 +4162,9 @@ log_full (struct app_context *ctx, struct server *s, struct buffer *buffer,
log_server_status ((s), (s)->buffer, "Notice -> #n: #m", (target), (text))
#define log_outcoming_orphan_privmsg(s, target, text) \
log_server_status ((s), (s)->buffer, "MSG(#n): #m", (target), (text))
+#define log_outcoming_orphan_action(s, target, text) \
+ log_server_status ((s), (s)->buffer, "MSG(#n): #a*#r #m", (target), \
+ ATTR_ACTION, (text))
#define log_ctcp_query(s, target, tag) \
log_server_status ((s), (s)->buffer, "CTCP query to #S: #S", target, tag)
@@ -6587,8 +6590,9 @@ irc_handle_sent_privmsg_text (struct server *s,
prefixes, s->irc_user->nickname, text->str);
free (prefixes);
}
+ else if (is_action)
+ log_outcoming_orphan_action (s, target, text->str);
else
- // TODO: also handle actions here
log_outcoming_orphan_privmsg (s, target, text->str);
}