mirror of https://github.com/SeanOMik/znc-push.git
Fix #9: fix namespacing issues for map and string
This commit is contained in:
parent
1dc2a13f66
commit
e1540e455c
9
push.cpp
9
push.cpp
|
@ -17,6 +17,7 @@
|
|||
#include <znc/Modules.h>
|
||||
#include <znc/FileUtils.h>
|
||||
#include "time.h"
|
||||
#include <string.h>
|
||||
|
||||
// Forward declaration
|
||||
class CPushMod;
|
||||
|
@ -74,13 +75,13 @@ class CPushMod : public CModule
|
|||
CString app;
|
||||
|
||||
// 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
|
||||
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
|
||||
map <CString, unsigned int> last_active_time;
|
||||
std::map <CString, unsigned int> 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue