mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 19:49:02 -04:00
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
This commit is contained in:
parent
fd820825ac
commit
1177426329
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -595,27 +595,27 @@ void ELine::OnAdd()
|
||||
|
||||
void ELine::DisplayExpiry()
|
||||
{
|
||||
ServerInstance->SNO->WriteToSnoMask('x',"Removing expired E-Line %s@%s (set by %s %ld seconds ago)",this->identmask,this->hostmask,this->source,ServerInstance->Time() - this->set_time);
|
||||
ServerInstance->SNO->WriteToSnoMask('x',"Removing expired E-Line %s@%s (set by %s %ld seconds ago)",this->identmask,this->hostmask,this->source,(long int)(ServerInstance->Time() - this->set_time));
|
||||
}
|
||||
|
||||
void QLine::DisplayExpiry()
|
||||
{
|
||||
ServerInstance->SNO->WriteToSnoMask('x',"Removing expired Q-Line %s (set by %s %ld seconds ago)",this->nick,this->source,ServerInstance->Time() - this->set_time);
|
||||
ServerInstance->SNO->WriteToSnoMask('x',"Removing expired Q-Line %s (set by %s %ld seconds ago)",this->nick,this->source,(long int)(ServerInstance->Time() - this->set_time));
|
||||
}
|
||||
|
||||
void ZLine::DisplayExpiry()
|
||||
{
|
||||
ServerInstance->SNO->WriteToSnoMask('x',"Removing expired Z-Line %s (set by %s %ld seconds ago)",this->ipaddr,this->source,ServerInstance->Time() - this->set_time);
|
||||
ServerInstance->SNO->WriteToSnoMask('x',"Removing expired Z-Line %s (set by %s %ld seconds ago)",this->ipaddr,this->source,(long int)(ServerInstance->Time() - this->set_time));
|
||||
}
|
||||
|
||||
void KLine::DisplayExpiry()
|
||||
{
|
||||
ServerInstance->SNO->WriteToSnoMask('x',"Removing expired K-Line %s@%s (set by %s %ld seconds ago)",this->identmask,this->hostmask,this->source,ServerInstance->Time() - this->set_time);
|
||||
ServerInstance->SNO->WriteToSnoMask('x',"Removing expired K-Line %s@%s (set by %s %ld seconds ago)",this->identmask,this->hostmask,this->source,(long int)(ServerInstance->Time() - this->set_time));
|
||||
}
|
||||
|
||||
void GLine::DisplayExpiry()
|
||||
{
|
||||
ServerInstance->SNO->WriteToSnoMask('x',"Removing expired G-Line %s@%s (set by %s %ld seconds ago)",this->identmask,this->hostmask,this->source,ServerInstance->Time() - this->set_time);
|
||||
ServerInstance->SNO->WriteToSnoMask('x',"Removing expired G-Line %s@%s (set by %s %ld seconds ago)",this->identmask,this->hostmask,this->source,(long int)(ServerInstance->Time() - this->set_time));
|
||||
}
|
||||
|
||||
const char* ELine::Displayable()
|
||||
|
Loading…
x
Reference in New Issue
Block a user