summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-08-08 15:10:48 +0200
committerattilamolnar <attilamolnar@hush.com>2013-08-08 15:10:48 +0200
commit9962840222b6886f7653fc64443f19ebd661cc63 (patch)
tree67686d0db5f8806a114a9b634f6e67cf9b70f7fa /src/commands
parent1f38b9adb576580d8e8638fefc5c7cb157f90a5c (diff)
Fix a couple of issues
- Wrong doc for Snomask::GetDescription() - Incorrect idle time when WHOISing remote users - String + int = garbage - Remote MODE commands (user mode changes) being broadcast in addition to being forwarded - Incorrect revision being shown
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_mode.cpp2
-rw-r--r--src/commands/cmd_whois.cpp2
2 files changed, 2 insertions, 2 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;