From 728627abd728dd17a01af7c4fb628dda3762a0af Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Fri, 23 Sep 2022 09:03:43 +0200 Subject: [PATCH] Set $0 the message content on PRIVMSG --- irc.awk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/irc.awk b/irc.awk index 029e51e..8a96e1c 100644 --- a/irc.awk +++ b/irc.awk @@ -363,6 +363,12 @@ __irc_conn { # Start processing after connected NOTICE = ""; INVITE = ""; JOIN = PART = QUIT = KICK = 0; + + if (__irc == "PRIVMSG") { + $0 = MSG; + } else { + $0 = ""; + } } # Auto Responses -- 2.45.2