From df421ecaea5460efc6e2440352f3b49da218c2cf Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 3 Feb 2020 05:14:55 +0100 Subject: [PATCH] Disambiguate the information messages --- src/deforaos-irc.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/deforaos-irc.sh b/src/deforaos-irc.sh index 9d49c19..cfc3d15 100755 --- a/src/deforaos-irc.sh +++ b/src/deforaos-irc.sh @@ -73,10 +73,10 @@ _irc() #output the text while read line; do if [ $notice -eq 0 ]; then - _info "$channel: Messaging user" + _info "$server: Messaging user $channel" output="$PRIVMSG $channel $line" else - _info "$channel: Notifying user" + _info "$server: Notifying user $channel" output="$NOTICE $channel :$line" fi echo "$output" @@ -85,7 +85,7 @@ _irc() else #join the channel if [ ! -w "$channelin" ]; then - _info "$channel: Joining channel" + _info "$server: Joining channel $channel" echo "$JOIN $channel" > "$serverin" fi #wait until the channel is joined @@ -101,13 +101,13 @@ _irc() #output the text if [ $ret -eq 0 ]; then if [ $notice -eq 0 ]; then - _info "$channel: Joined channel" + _info "$server: Joined channel $channel" while read line; do echo "$line" $SLEEP done > "$channelin" else - _info "$channel: Notifying channel" + _info "$server: Notifying channel $channel" while read line; do echo "$NOTICE $channel :$line" $SLEEP