From dbd37bc35d680848be46f7ea1dd88424b303e966 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sun, 9 Jul 2017 00:14:15 +1000 Subject: [PATCH] Messages sent by /SV and /PASTE should be logged in the send log This looks like an oversight. --- Changelog | 2 ++ source/commands2.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 674c410..a6d61d6 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,7 @@ [Changes 1.2.2] +* Messages sent by /SV and /PASTE should be logged in the send log. (caf) + * Change send_text() to combine command, hook and log arguments into one set of flags. (caf) diff --git a/source/commands2.c b/source/commands2.c index dda2583..50f58eb 100644 --- a/source/commands2.c +++ b/source/commands2.c @@ -933,7 +933,7 @@ BUILT_IN_COMMAND(show_version) nick = next_arg(args, &args); else nick = get_current_channel_by_refnum(0); - send_text(nick, version_buf, 0); + send_text(nick, version_buf, STXT_LOG); new_free(&version_buf); } @@ -1979,7 +1979,7 @@ BUILT_IN_COMMAND(pastecmd) if (start_pos && start_pos->line) { if (do_hook(PASTE_LIST, "%s %s", channel, start_pos->line)) - send_text(channel, convert_output_format(fget_string_var(FORMAT_PASTE_FSET),"%s %d %s", channel, line, start_pos->line), 0); + send_text(channel, convert_output_format(fget_string_var(FORMAT_PASTE_FSET),"%s %d %s", channel, line, start_pos->line), STXT_LOG); start_pos = start_pos->next; } count--;