Disambiguate the information messages

This commit is contained in:
Pierre Pronchery 2020-02-03 05:14:55 +01:00
parent 27a46f5559
commit df421ecaea

View File

@ -73,10 +73,10 @@ _irc()
#output the text #output the text
while read line; do while read line; do
if [ $notice -eq 0 ]; then if [ $notice -eq 0 ]; then
_info "$channel: Messaging user" _info "$server: Messaging user $channel"
output="$PRIVMSG $channel $line" output="$PRIVMSG $channel $line"
else else
_info "$channel: Notifying user" _info "$server: Notifying user $channel"
output="$NOTICE $channel :$line" output="$NOTICE $channel :$line"
fi fi
echo "$output" echo "$output"
@ -85,7 +85,7 @@ _irc()
else else
#join the channel #join the channel
if [ ! -w "$channelin" ]; then if [ ! -w "$channelin" ]; then
_info "$channel: Joining channel" _info "$server: Joining channel $channel"
echo "$JOIN $channel" > "$serverin" echo "$JOIN $channel" > "$serverin"
fi fi
#wait until the channel is joined #wait until the channel is joined
@ -101,13 +101,13 @@ _irc()
#output the text #output the text
if [ $ret -eq 0 ]; then if [ $ret -eq 0 ]; then
if [ $notice -eq 0 ]; then if [ $notice -eq 0 ]; then
_info "$channel: Joined channel" _info "$server: Joined channel $channel"
while read line; do while read line; do
echo "$line" echo "$line"
$SLEEP $SLEEP
done > "$channelin" done > "$channelin"
else else
_info "$channel: Notifying channel" _info "$server: Notifying channel $channel"
while read line; do while read line; do
echo "$NOTICE $channel :$line" echo "$NOTICE $channel :$line"
$SLEEP $SLEEP