diff options
Diffstat (limited to 'plugins/Irc/IrcPlugin.php')
-rw-r--r-- | plugins/Irc/IrcPlugin.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Irc/IrcPlugin.php b/plugins/Irc/IrcPlugin.php index dec6d7e83..855aa3305 100644 --- a/plugins/Irc/IrcPlugin.php +++ b/plugins/Irc/IrcPlugin.php @@ -165,8 +165,11 @@ class IrcPlugin extends ImPlugin { * @return boolean success value */ public function send_message($screenname, $body) { - $this->fake_irc->doPrivmsg($screenname, $body); - $this->enqueue_outgoing_raw(array('type' => 'message', 'data' => $this->fake_irc->would_be_sent)); + $lines = explode("\n", $body); + foreach ($lines as $line) { + $this->fake_irc->doPrivmsg($screenname, $line); + $this->enqueue_outgoing_raw(array('type' => 'message', 'data' => $this->fake_irc->would_be_sent)); + } return true; } |