summaryrefslogtreecommitdiff
path: root/modules/commands/cs_modes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_modes.cpp')
-rw-r--r--modules/commands/cs_modes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_modes.cpp b/modules/commands/cs_modes.cpp
index 2775e92bc..696c38dde 100644
--- a/modules/commands/cs_modes.cpp
+++ b/modules/commands/cs_modes.cpp
@@ -18,8 +18,8 @@ class CommandModeBase : public Command
void do_mode(CommandSource &source, Command *com, ChannelMode *cm, const Anope::string &chan, const Anope::string &nick, bool set, const Anope::string &level, const Anope::string &levelself)
{
User *u = source.GetUser();
- User *u2 = finduser(nick);
- Channel *c = findchan(chan);
+ User *u2 = User::Find(nick, true);
+ Channel *c = Channel::Find(chan);
if (!c)
{