Skip to content

Instantly share code, notes, and snippets.

@yewton
Created July 27, 2012 06:14
Show Gist options
  • Save yewton/3186432 to your computer and use it in GitHub Desktop.
Save yewton/3186432 to your computer and use it in GitHub Desktop.
ZNC の playback を Notice に
diff -Naru znc-0.206.orig/Client.cpp znc-0.206/Client.cpp
--- znc-0.206.orig/Client.cpp 2012-07-27 14:52:48.000000000 +0900
+++ znc-0.206/Client.cpp 2012-07-27 14:56:31.000000000 +0900
@@ -430,7 +430,7 @@
CChan* pChan = m_pUser->FindChan(sTarget);
if ((pChan) && (pChan->KeepBuffer())) {
- pChan->AddBuffer(":" + GetNickMask() + " PRIVMSG " + sTarget + " :" + m_pUser->AddTimestamp(sMsg));
+ pChan->AddBuffer(":" + GetNickMask() + " NOTICE " + sTarget + " :" + m_pUser->AddTimestamp(sMsg));
}
PutIRC("PRIVMSG " + sTarget + " :" + sMsg);
diff -Naru znc-0.206.orig/IRCSock.cpp znc-0.206/IRCSock.cpp
--- znc-0.206.orig/IRCSock.cpp 2012-07-27 14:52:48.000000000 +0900
+++ znc-0.206/IRCSock.cpp 2012-07-27 14:29:40.000000000 +0900
@@ -903,7 +903,7 @@
MODULECALL(OnChanMsg(Nick, *pChan, sMessage), m_pUser, NULL, return true);
if (pChan->KeepBuffer() || !m_pUser->IsUserAttached() || pChan->IsDetached()) {
- pChan->AddBuffer(":" + Nick.GetNickMask() + " PRIVMSG " + sChan + " :" + m_pUser->AddTimestamp(sMessage));
+ pChan->AddBuffer(":" + Nick.GetNickMask() + " NOTICE " + sChan + " :" + m_pUser->AddTimestamp(sMessage));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment