mirror of https://github.com/SeanOMik/znc-push.git
Fix #9: fix namespacing issues for map and string
This commit is contained in:
parent
894448ca6f
commit
7fa3fe8326
9
push.cpp
9
push.cpp
|
@ -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;
|
||||||
|
@ -497,7 +498,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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue