Fix #9: fix namespacing issues for map and string

This commit is contained in:
Daniel Wallace 2012-08-30 22:47:27 -04:00 committed by John Reese
parent 1dc2a13f66
commit e1540e455c
1 changed files with 5 additions and 4 deletions

View File

@ -17,6 +17,7 @@
#include <znc/Modules.h> #include <znc/Modules.h>
#include <znc/FileUtils.h> #include <znc/FileUtils.h>
#include "time.h" #include "time.h"
#include <string.h>
// Forward declaration // Forward declaration
class CPushMod; class CPushMod;
@ -74,13 +75,13 @@ class CPushMod : public CModule
CString app; CString app;
// Time last notification was sent for a given context // Time last notification was sent for a given context
map <CString, unsigned int> last_notification_time; std::map <CString, unsigned int> last_notification_time;
// Time of last message by user to a given context // Time of last message by user to a given context
map <CString, unsigned int> last_reply_time; std::map <CString, unsigned int> last_reply_time;
// Time of last activity by user for a given context // Time of last activity by user for a given context
map <CString, unsigned int> last_active_time; std::map <CString, unsigned int> last_active_time;
// Time of last activity by user in any context // Time of last activity by user in any context
unsigned int idle_time; unsigned int idle_time;
@ -546,7 +547,7 @@ class CPushMod : public CModule
CNick nick = user->GetNick(); CNick nick = user->GetNick();
if (message.find(nick.GetNick()) != string::npos) if (message.find(nick.GetNick()) != std::string::npos)
{ {
return true; return true;
} }