summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands/cmd_mode.cpp2
-rw-r--r--src/commands/cmd_whois.cpp2
-rw-r--r--src/inspircd.cpp2
-rw-r--r--src/modules/m_channames.cpp2
-rw-r--r--src/modules/m_ojoin.cpp2
-rw-r--r--src/modules/m_spanningtree/idle.cpp2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/commands/cmd_mode.cpp b/src/commands/cmd_mode.cpp
index adb1d483b..1a42835e5 100644
--- a/src/commands/cmd_mode.cpp
+++ b/src/commands/cmd_mode.cpp
@@ -49,7 +49,7 @@ class CommandMode : public Command
*/
CmdResult CommandMode::Handle (const std::vector<std::string>& parameters, User *user)
{
- ServerInstance->Modes->Process(parameters, user);
+ ServerInstance->Modes->Process(parameters, user, (IS_LOCAL(user) ? ModeParser::MODE_NONE : ModeParser::MODE_LOCALONLY));
return CMD_SUCCESS;
}
diff --git a/src/commands/cmd_whois.cpp b/src/commands/cmd_whois.cpp
index f75bd13fe..0df6b65f0 100644
--- a/src/commands/cmd_whois.cpp
+++ b/src/commands/cmd_whois.cpp
@@ -196,7 +196,7 @@ CmdResult CommandWhois::HandleRemote(const std::vector<std::string>& parameters,
if (!user)
return CMD_FAILURE;
- unsigned long idle = ConvToInt(parameters[1]);
+ unsigned long idle = ConvToInt(parameters.back());
DoWhois(user, target, target->signon, idle);
return CMD_SUCCESS;
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 78659089c..59c65b931 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -358,7 +358,7 @@ InspIRCd::InspIRCd(int argc, char** argv) :
if (do_version)
{
- std::cout << std::endl << VERSION << " r" << REVISION << std::endl;
+ std::cout << std::endl << VERSION << " " << REVISION << std::endl;
Exit(EXIT_STATUS_NOERROR);
}
diff --git a/src/modules/m_channames.cpp b/src/modules/m_channames.cpp
index 4228d5050..fcb2ef6d7 100644
--- a/src/modules/m_channames.cpp
+++ b/src/modules/m_channames.cpp
@@ -82,7 +82,7 @@ class ModuleChannelNames : public Module
{
std::vector<std::string> modes;
modes.push_back(c->name);
- modes.push_back("-" + permchannelmode->GetModeChar());
+ modes.push_back(std::string("-") + permchannelmode->GetModeChar());
ServerInstance->Modes->Process(modes, ServerInstance->FakeClient);
}
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp
index 8f7fe4460..b0c206ab3 100644
--- a/src/modules/m_ojoin.cpp
+++ b/src/modules/m_ojoin.cpp
@@ -69,7 +69,7 @@ class CommandOjoin : public SplitCommand
// they're already in the channel
std::vector<std::string> modes;
modes.push_back(parameters[0]);
- modes.push_back("+" + npmh->GetModeChar());
+ modes.push_back(std::string("+") + npmh->GetModeChar());
if (op)
{
modes[1].push_back('o');
diff --git a/src/modules/m_spanningtree/idle.cpp b/src/modules/m_spanningtree/idle.cpp
index bf074bf7f..2c95eaad1 100644
--- a/src/modules/m_spanningtree/idle.cpp
+++ b/src/modules/m_spanningtree/idle.cpp
@@ -60,7 +60,7 @@ bool TreeSocket::Whois(const std::string &prefix, parameterlist &params)
// Possible case when our clock ticked backwards
idle = 0;
else
- idle = ((unsigned int) (localtarget->idle_lastmsg - ServerInstance->Time()));
+ idle = ((unsigned int) (ServerInstance->Time() - localtarget->idle_lastmsg));
parameterlist reply;
reply.push_back(prefix);