From 7fa3fe832698e73ea9b4ef5f066b2670e338e73c 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 8c3e961..3f93c90 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; @@ -497,7 +498,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; }