Skip to content

Commit

Permalink
Use " " instead of ":" in awaystore's buffer internal format. Fix #267
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthGandalf committed Mar 16, 2013
1 parent 9f4f281 commit ae7bcaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/awaystore.cpp
Expand Up @@ -119,9 +119,9 @@ class CAway : public CModule
void ShowCommand(const CString& sCommand) {
map< CString, vector< CString> > msvOutput;
for (u_int a = 0; a < m_vMessages.size(); a++) {
CString sTime = m_vMessages[a].Token(0, false, ":");
CString sWhom = m_vMessages[a].Token(1, false, ":");
CString sMessage = m_vMessages[a].Token(2, true, ":");
CString sTime = m_vMessages[a].Token(0, false);
CString sWhom = m_vMessages[a].Token(1, false);
CString sMessage = m_vMessages[a].Token(2, true);

if ((sTime.empty()) || (sWhom.empty()) || (sMessage.empty())) {
// illegal format
Expand Down Expand Up @@ -447,7 +447,7 @@ class CAway : public CModule
{
if (Nick.GetNick() == m_pNetwork->GetIRCNick().GetNick())
return; // ignore messages from self
AddMessage(CString(iTime) + ":" + Nick.GetNickMask() + ":" + sMessage);
AddMessage(CString(iTime) + " " + Nick.GetNickMask() + " " + sMessage);
}

void AddMessage(const CString & sText)
Expand Down

0 comments on commit ae7bcaf

Please sign in to comment.