mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
merge with rev 932 psychon branch:
- module call for /me's - timestamps for playback and query buffer - WALLOP stuff / fix - properly join channels _after_ namesx or uhnames were set up - dont screw up raws on reconnect when you ran /lusers - change default quit msg and version reply to CZNC::GetTag(false) - change CZNC::GetTag() to point to sf.net - kind of an rewrite for partyline, added fixed channels (this doesnt work on irssi, did it ever work?) - add the timestamp support to webadmin too - add ConnectDelay config option to avoid being killed because we connected too fast - make znc handle usermodes correctly git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@799 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
12
Buffer.cpp
12
Buffer.cpp
@@ -36,6 +36,18 @@ int CBuffer::AddLine(const CString& sPre, const CString& sPost, bool bIncNick) {
|
||||
return size();
|
||||
}
|
||||
|
||||
int CBuffer::UpdateLine(const CString& sPre, const CString& sPost, bool bIncNick) {
|
||||
for(iterator it = begin(); it != end(); it++) {
|
||||
if(it->GetPre() == sPre) {
|
||||
it->SetPost(sPost);
|
||||
it->SetIncNick(bIncNick);
|
||||
return size();
|
||||
}
|
||||
}
|
||||
|
||||
return AddLine(sPre, sPost, bIncNick);
|
||||
}
|
||||
|
||||
bool CBuffer::GetLine(const CString& sTarget, CString& sRet, unsigned int uIdx) {
|
||||
if (uIdx >= size()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user