]> Pileus Git - ~andy/rhawk/commitdiff
Speed initial connection setup
authorAndy Spencer <andy753421@gmail.com>
Thu, 25 Apr 2013 07:51:19 +0000 (07:51 +0000)
committerAndy Spencer <andy753421@gmail.com>
Thu, 25 Apr 2013 07:51:19 +0000 (07:51 +0000)
irc.awk

diff --git a/irc.awk b/irc.awk
index 2f5d220c0934c59e443d89ebe0885b2df306cef3..4e4636c126c3090f5b3ad0fa1e50111903a105fc 100644 (file)
--- a/irc.awk
+++ b/irc.awk
@@ -21,8 +21,6 @@
 function send(msg) {
        print "  > " msg > "/dev/stderr"
        print msg
-       if (!DEBUG)
-               system("sleep 1")
        fflush()
 }
 
@@ -72,6 +70,8 @@ function say(to, msg) {
                        to = CHANNEL
        }
        send("PRIVMSG " to " :" msg)
+       if (!DEBUG && NR > 1)
+               system("sleep 1")
 }
 
 function action(to, msg)