diff -r 4027a5b47db5 -r 1855846cbdab libirc.php
--- a/libirc.php Wed Dec 31 21:54:19 2008 -0500
+++ b/libirc.php Thu Jan 01 00:18:34 2009 -0500
@@ -239,6 +239,23 @@
}
/**
+ * Sends a notice.
+ * @param string Nick or channel
+ * @param string Message
+ */
+
+ public function notice($nick, $message)
+ {
+ $message = str_replace("\r\n", "\n", $message);
+ $message = explode("\n", $message);
+ foreach ( $message as $line )
+ {
+ $line = $this->filter_message($line);
+ $this->put("NOTICE $nick :$line\r\n");
+ }
+ }
+
+ /**
* Parse bold (...) tags and color tags in a text into IRC speak, and process /me commands. Colors are ..., specify background with .... Valid colors are white, black, navy, green, red, maroon, purple, orange, yellow, lime, teal, aqua, cyan, blue, pink, grey, and silver
* @param string Text to filter
* @return string