Greeting: bot no longer greets itself
authorDan
Sat, 10 Jan 2009 14:07:54 -0500
changeset 48 d793361a27ec
parent 47 633ec114f630
child 49 4c4d69b2cd4d
Greeting: bot no longer greets itself
modules/greeting.php
--- a/modules/greeting.php	Mon Jan 05 22:50:59 2009 -0500
+++ b/modules/greeting.php	Sat Jan 10 14:07:54 2009 -0500
@@ -9,6 +9,9 @@
   switch($message['action'])
   {
     case 'JOIN':
+      if ( $message['nick'] === $GLOBALS['nick'] )
+        break;
+      
       $wb = false;
       if ( isset($part_list[$message['nick']]) )
       {