# HG changeset patch # User Dan # Date 1223766553 0 # Node ID 506a7e0fb106c8c8494a8ef3421905087b168efe # Parent f073c94a1477d2efceec2242a5c7b2db0d041a28 Disabled "snippet not found" message, for now diff -r f073c94a1477 -r 506a7e0fb106 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);