summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@iohq.net>2016-04-09 23:38:53 -0600
committerAaron Ball <nullspoon@iohq.net>2016-04-09 23:38:53 -0600
commita0efae77e4b573864011edbcbee61cb85c82d343 (patch)
treec3b31424bb2241c4a0357fb269484f3d2c7da5ca
parent75aee1b827caeb06b77e4154b5a352ee4f481f1f (diff)
downloadircmsg-a0efae77e4b573864011edbcbee61cb85c82d343.tar.gz
ircmsg-a0efae77e4b573864011edbcbee61cb85c82d343.tar.xz
Added QUIT command
IRC server was logging read errors on ircmsg quit. This was due to it not sending a quit command before closing the socket.
-rwxr-xr-xircmsg.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ircmsg.sh b/ircmsg.sh
index ce4448b..754d736 100755
--- a/ircmsg.sh
+++ b/ircmsg.sh
@@ -92,6 +92,9 @@ function main {
# Send message to specified channel
echo "PRIVMSG ${chan} ${msg}" >&${portfd}
+ # Send quit command
+ echo "QUIT :All done!" >&${portfd}
+
# Close up shop
close_sock ${portfd}
}

Generated by cgit