summaryrefslogtreecommitdiff
path: root/lib/common-functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-xlib/common-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 8886af5..cb39509 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -719,7 +719,7 @@ irc_say() {
rm "${work_dir}/irc-shut-up"
fi
if [ -s "${work_dir}/irc-shut-up" ] && \
- [ -z "$1" ]; then
+ [ -z "${channel%%#*}" ]; then
channel_in_pipe='/dev/null'
else
channel_in_pipe="${irc_dir}/${channel}/in"