Skip to content
Browse files

Merge commit 'refs/pull/206/head' of github.com:znc/znc

  • Loading branch information...
2 parents f174d49 + be76679 commit f54d4d443f1e8a952ef3e84afcb29e70e0a41e6f @DarthGandalf DarthGandalf committed Nov 7, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/Client.cpp
View
8 src/Client.cpp
@@ -767,12 +767,18 @@ void CClient::PutModNotice(const CString& sModule, const CString& sLine) {
}
void CClient::PutModule(const CString& sModule, const CString& sLine) {
+ VCString vsLines;
+ VCString::iterator it;
if (!m_pUser) {
return;
}
DEBUG("(" << GetFullName() << ") ZNC -> CLI [:" + m_pUser->GetStatusPrefix() + ((sModule.empty()) ? "status" : sModule) + "!znc@znc.in PRIVMSG " << GetNick() << " :" << sLine << "]");
- Write(":" + m_pUser->GetStatusPrefix() + ((sModule.empty()) ? "status" : sModule) + "!znc@znc.in PRIVMSG " + GetNick() + " :" + sLine + "\r\n");
+
+ sLine.Split("\n", vsLines);
+ for (it = vsLines.begin(); it != vsLines.end(); ++it) {
+ Write(":" + m_pUser->GetStatusPrefix() + ((sModule.empty()) ? "status" : sModule) + "!znc@znc.in PRIVMSG " + GetNick() + " :" + (*it) + "\r\n");
+ }
}
CString CClient::GetNick(bool bAllowIRCNick) const {

0 comments on commit f54d4d4

Please sign in to comment.
Something went wrong with that request. Please try again.