From e1540e455ce42fae623f28bfaeecbe9a4736267d Mon Sep 17 00:00:00 2001 From: Daniel Wallace Date: Thu, 30 Aug 2012 22:47:27 -0400 Subject: [PATCH] Fix #9: fix namespacing issues for map and string --- push.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/push.cpp b/push.cpp index 974c745..fd84d47 100644 --- a/push.cpp +++ b/push.cpp @@ -17,6 +17,7 @@ #include #include #include "time.h" +#include // Forward declaration class CPushMod; @@ -74,13 +75,13 @@ class CPushMod : public CModule CString app; // Time last notification was sent for a given context - map last_notification_time; + std::map last_notification_time; // Time of last message by user to a given context - map last_reply_time; + std::map last_reply_time; // Time of last activity by user for a given context - map last_active_time; + std::map last_active_time; // Time of last activity by user in any context unsigned int idle_time; @@ -546,7 +547,7 @@ class CPushMod : public CModule CNick nick = user->GetNick(); - if (message.find(nick.GetNick()) != string::npos) + if (message.find(nick.GetNick()) != std::string::npos) { return true; }