Disabled "snippet not found" message, for now
authorDan
Sat, 11 Oct 2008 23:09:13 +0000
changeset 14 506a7e0fb106
parent 13 f073c94a1477
child 15 5e2d1514ccd0
Disabled "snippet not found" message, for now
modules/snippets.php
--- a/modules/snippets.php	Sat Oct 11 23:07:55 2008 +0000
+++ b/modules/snippets.php	Sat Oct 11 23:09:13 2008 +0000
@@ -17,7 +17,7 @@
       $q = eb_mysql_query('SELECT snippet_code, snippet_channels FROM snippets;');
       if ( mysql_num_rows($q) < 1 )
       {
-        $chan->msg(eb_censor_words("{$message['nick']}, I couldn't find that snippet (\"$snippet\") in the database."), true);
+        // $chan->msg(eb_censor_words("{$message['nick']}, I couldn't find that snippet (\"$snippet\") in the database."), true);
       }
       else
       {
@@ -46,7 +46,7 @@
       $q = eb_mysql_query('SELECT snippet_text, snippet_channels FROM snippets WHERE snippet_code = \'' . mysql_real_escape_string($snippet) . '\';');
       if ( mysql_num_rows($q) < 1 )
       {
-        $chan->msg(eb_censor_words("{$message['nick']}, I couldn't find that snippet (\"$snippet\") in the database."), true);
+        // $chan->msg(eb_censor_words("{$message['nick']}, I couldn't find that snippet (\"$snippet\") in the database."), true);
       }
       else
       {
@@ -58,7 +58,7 @@
         }
         else
         {
-          $chan->msg(eb_censor_words("{$message['nick']}, I couldn't find that snippet (\"$snippet\") in the database."), true);
+          // $chan->msg(eb_censor_words("{$message['nick']}, I couldn't find that snippet (\"$snippet\") in the database."), true);
         }
       }
       @mysql_free_result($q);