Example #1
0
 void OnQuitMessage(CQuitMessage& Message,
                    const vector<CChan*>& vChans) override {
     const CNick& Nick = Message.GetNick();
     const CString sMessage = Message.GetReason();
     const CString sMsg = t_f("{1} quit: {2}")(Nick.GetNickMask(), sMessage);
     for (CChan* pChan : vChans) {
         AddBuffer(*pChan, sMsg, &Message.GetTime(), Message.GetTags());
     }
 }
Example #2
0
 void OnQuitMessage(CQuitMessage& Message,
                    const vector<CChan*>& vChans) override {
     const CNick& Nick = Message.GetNick();
     const CString sMessage = Message.GetReason();
     CString sMsg =
         Nick.GetNickMask() + " quit with message: [" + sMessage + "]";
     for (CChan* pChan : vChans) {
         AddBuffer(*pChan, sMsg, &Message.GetTime(), Message.GetTags());
     }
 }