changeset 40 | 1855846cbdab |
parent 38 | e6a4b7f91e91 |
child 51 | 508400fc5282 |
39:4027a5b47db5 | 40:1855846cbdab |
---|---|
233 $message = explode("\n", $message); |
233 $message = explode("\n", $message); |
234 foreach ( $message as $line ) |
234 foreach ( $message as $line ) |
235 { |
235 { |
236 $line = $this->filter_message($line); |
236 $line = $this->filter_message($line); |
237 $this->put("PRIVMSG $nick :$line\r\n"); |
237 $this->put("PRIVMSG $nick :$line\r\n"); |
238 } |
|
239 } |
|
240 |
|
241 /** |
|
242 * Sends a notice. |
|
243 * @param string Nick or channel |
|
244 * @param string Message |
|
245 */ |
|
246 |
|
247 public function notice($nick, $message) |
|
248 { |
|
249 $message = str_replace("\r\n", "\n", $message); |
|
250 $message = explode("\n", $message); |
|
251 foreach ( $message as $line ) |
|
252 { |
|
253 $line = $this->filter_message($line); |
|
254 $this->put("NOTICE $nick :$line\r\n"); |
|
238 } |
255 } |
239 } |
256 } |
240 |
257 |
241 /** |
258 /** |
242 * Parse bold (<b>...</b>) tags and color tags in a text into IRC speak, and process /me commands. Colors are <cyan>...</cyan>, specify background with <fg:bg>...</fgcolor:bgcolor>. Valid colors are white, black, navy, green, red, maroon, purple, orange, yellow, lime, teal, aqua, cyan, blue, pink, grey, and silver |
259 * Parse bold (<b>...</b>) tags and color tags in a text into IRC speak, and process /me commands. Colors are <cyan>...</cyan>, specify background with <fg:bg>...</fgcolor:bgcolor>. Valid colors are white, black, navy, green, red, maroon, purple, orange, yellow, lime, teal, aqua, cyan, blue, pink, grey, and silver |