mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
change PutModule to handle multiple lines if need be. fixes #205
This commit is contained in:
@@ -761,12 +761,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 {
|
||||
|
||||
Reference in New Issue
Block a user