Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-04 10:11:24 +0200
committerErich Eckner <git@eckner.net>2018-06-04 10:11:24 +0200
commit6c8b62f5eea8c3abcde972e09927da0c94580612 (patch)
tree5804036b0f82094d67d54a18c77d458304e16a54 /lib/common-functions
parent9cc3e650e64bba50868b7ae53623c463998150c7 (diff)
lib/common-functions: do not "shut up" in ims
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-xlib/common-functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/common-functions b/lib/common-functions
index be35144..8886af5 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -718,7 +718,8 @@ irc_say() {
[ "$(date '+%s')" -gt "$(cat "${work_dir}/irc-shut-up")" ]; then
rm "${work_dir}/irc-shut-up"
fi
- if [ -s "${work_dir}/irc-shut-up" ]; then
+ if [ -s "${work_dir}/irc-shut-up" ] && \
+ [ -z "$1" ]; then
channel_in_pipe='/dev/null'
else
channel_in_pipe="${irc_dir}/${channel}/in"