mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Add CClient::PutStatus(const CTable&) and use it everywhere
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1222 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -717,6 +717,14 @@ void CClient::PutStatusNotice(const CString& sLine) {
|
||||
PutModNotice("status", sLine);
|
||||
}
|
||||
|
||||
unsigned int CClient::PutStatus(const CTable& table) {
|
||||
unsigned int idx = 0;
|
||||
CString sLine;
|
||||
while (table.GetLine(idx++, sLine))
|
||||
PutStatus(sLine);
|
||||
return idx - 1;
|
||||
}
|
||||
|
||||
void CClient::PutStatus(const CString& sLine) {
|
||||
PutModule("status", sLine);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user