summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authordz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-28 11:27:10 +0000
committerdz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-28 11:27:10 +0000
commit117742632909d9bfd71fc4feb3304263558101b7 (patch)
treec62cf61548c503aead3d2619ecdf240e4720c218 /src/modules
parentfd820825ac669c9cd8cc8b7a69ca855159b0d3cb (diff)
Note to self, cast time_t to long int for printf... thanks Ankit for pointing this out.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11012 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cban.cpp2
-rw-r--r--src/modules/m_rline.cpp2
-rw-r--r--src/modules/m_shun.cpp2
-rw-r--r--src/modules/m_svshold.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp
index ba0fa6f36..e9cf1ce0a 100644
--- a/src/modules/m_cban.cpp
+++ b/src/modules/m_cban.cpp
@@ -47,7 +47,7 @@ public:
void DisplayExpiry()
{
- ServerInstance->SNO->WriteToSnoMask('x',"Removing expired CBan %s (set by %s %ld seconds ago)", this->matchtext.c_str(), this->source, ServerInstance->Time() - this->set_time);
+ ServerInstance->SNO->WriteToSnoMask('x',"Removing expired CBan %s (set by %s %ld seconds ago)", this->matchtext.c_str(), this->source, (long int)(ServerInstance->Time() - this->set_time));
}
const char* Displayable()
diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp
index 27ca31f48..bd2f39854 100644
--- a/src/modules/m_rline.cpp
+++ b/src/modules/m_rline.cpp
@@ -73,7 +73,7 @@ class RLine : public XLine
void DisplayExpiry()
{
- ServerInstance->SNO->WriteToSnoMask('x',"Removing expired R-Line %s (set by %s %ld seconds ago)", this->matchtext.c_str(), this->source, ServerInstance->Time() - this->set_time);
+ ServerInstance->SNO->WriteToSnoMask('x',"Removing expired R-Line %s (set by %s %ld seconds ago)", this->matchtext.c_str(), this->source, (long int)(ServerInstance->Time() - this->set_time));
}
const char* Displayable()
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index 25ddfcb58..1127d397d 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -54,7 +54,7 @@ public:
void DisplayExpiry()
{
- ServerInstance->SNO->WriteToSnoMask('x',"Removing expired shun %s (set by %s %ld seconds ago)", this->matchtext.c_str(), this->source, ServerInstance->Time() - this->set_time);
+ ServerInstance->SNO->WriteToSnoMask('x',"Removing expired shun %s (set by %s %ld seconds ago)", this->matchtext.c_str(), this->source, (long int)(ServerInstance->Time() - this->set_time));
}
const char* Displayable()
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp
index b5b308f6a..2dc0e22ef 100644
--- a/src/modules/m_svshold.cpp
+++ b/src/modules/m_svshold.cpp
@@ -48,7 +48,7 @@ public:
void DisplayExpiry()
{
- ServerInstance->SNO->WriteToSnoMask('x',"Removing expired SVSHOLD %s (set by %s %ld seconds ago)", this->nickname.c_str(), this->source, ServerInstance->Time() - this->set_time);
+ ServerInstance->SNO->WriteToSnoMask('x',"Removing expired SVSHOLD %s (set by %s %ld seconds ago)", this->nickname.c_str(), this->source, (long int)(ServerInstance->Time() - this->set_time));
}
const char* Displayable()