// (c) 2011 Richard Carter
// This code is licensed under the MIT license; see LICENSE.txt for details.

// This script handles the following functions:
//     Looks for "hello", "hi", "howdy", "hola" and says hello; intended to join in on greeting someone when someone else greets them.
//     Same thing for "goodbye" and "bye"

listen(/PRIVMSG [^ ]+ :(hello|hi|howdy|hola)([!?., ].*)?$/i, function(match, data, replyTo) {
	irc.privmsg(replyTo, "Hello!");
});
listen(/PRIVMSG [^ ]+ :(goodbye|bye)/i, function(match, data, replyTo) {
	irc.privmsg(replyTo, "Goodbye!");
});

@@ -221,16 +221,23 @@
 ended to
+%0A//    
  join in
@@ -331,16 +331,225 @@
  %22bye%22%0A%0A
+var waiting = false;%0Afunction privmsg_throttled(replyTo, msg) %7B%0A    if(!waiting) %7B%0A        irc.privmsg(replyTo, msg);%0A        waiting = true;%0A        setTimeout(function()%7B waiting = false; %7D, 3000);%0A    %7D%0A%7D%0A%0A
 listen(/
@@ -587,22 +587,13 @@
 hola
-)(%5B!?., %5D.*)?$
+%7Chey)
 /i, 
@@ -621,36 +621,45 @@
  replyTo) %7B%0A
-%09irc.
+    
 privmsg
+_throttled
 (replyTo, %22H
@@ -671,16 +671,17 @@
 %22);%0A%7D);%0A
+%0A
 listen(/
@@ -707,16 +707,31 @@
 dbye%7Cbye
+%7Ccya%7Cadios%7Cttyl
 )/i, fun
@@ -764,20 +764,29 @@
 ) %7B%0A
-%09irc.
+    
 privmsg
+_throttled
 (rep

Throttle time between greetings