From 651936d904ab32cfaace233ecd5ff159e6a22c13 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 1 Jul 2007 12:22:11 +0000 Subject: Compile fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7417 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 2 +- src/userprocess.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mode.cpp b/src/mode.cpp index ebf18b1cf..4573cca07 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -483,7 +483,7 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool parameter = parameters[parameter_counter++]; /* Yerk, invalid! */ - if ((parameter.find(':', 0, 1) == 0) || (parameter.rfind(' ') != std::string::npos)) + if ((parameter.find(':') == 0) || (parameter.rfind(' ') != std::string::npos)) parameter.clear(); } else diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 36523e522..b27844fb6 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -275,7 +275,7 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME) /* Everybody loves boobies. */ time_t time = this->Time(false) - (curr->nping - curr->pingmax); char message[MAXBUF]; - snprintf(message, MAXBUF, "Ping timeout: %d second%s", time, time > 1 ? "s" : ""); + snprintf(message, MAXBUF, "Ping timeout: %ld second%s", time, time > 1 ? "s" : ""); curr->muted = true; GlobalCulls.AddItem(curr, message); curr->lastping = 1; -- cgit v1.2.3