summaryrefslogtreecommitdiff
path: root/modules/greet.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-01-27 08:40:26 -0500
committerAdam <Adam@anope.org>2017-01-27 08:40:26 -0500
commit9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (patch)
tree618a4f0e173166e6f966a7cce78f06c3c1c3299f /modules/greet.cpp
parent16ca76c2e7ab287e480185fbb03a0bb438351eda (diff)
Store CommandInfo in CommandSource instead of just command/permission
Diffstat (limited to 'modules/greet.cpp')
-rw-r--r--modules/greet.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/greet.cpp b/modules/greet.cpp
index 52591f7f5..a954a7f21 100644
--- a/modules/greet.cpp
+++ b/modules/greet.cpp
@@ -72,7 +72,9 @@ class CommandBSSetGreet : public Command
source.Reply(_("Greet mode for \002{0}\002 is now \002off\002."), ci->GetName());
}
else
- this->OnSyntaxError(source, source.command);
+ {
+ this->OnSyntaxError(source, source.GetCommand());
+ }
}
bool OnHelp(CommandSource &source, const Anope::string &) override