summaryrefslogtreecommitdiff
path: root/src/coremods/core_channel
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-04-09 15:02:10 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-04-09 15:02:10 +0200
commit0c476dd0ca2dc9fc811d760306a541caddf30edb (patch)
tree33ae6f6fc61afbb5406a36fd1256c812ec79f604 /src/coremods/core_channel
parent6dc4436ae48e6cc4b309d3cec609047920916cde (diff)
Avoid double Membership lookup in Channel::UserList()
The user is always inside if UserList() is called from ForceJoin() and the HasUser() result obtained in the /NAMES handler can be reused
Diffstat (limited to 'src/coremods/core_channel')
-rw-r--r--src/coremods/core_channel/cmd_names.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_channel/cmd_names.cpp b/src/coremods/core_channel/cmd_names.cpp
index 558ad8407..20faae774 100644
--- a/src/coremods/core_channel/cmd_names.cpp
+++ b/src/coremods/core_channel/cmd_names.cpp
@@ -54,7 +54,7 @@ CmdResult CommandNames::Handle (const std::vector<std::string>& parameters, User
bool has_user = c->HasUser(user);
if ((!c->IsModeSet(secretmode)) || (has_user) || (user->HasPrivPermission("channels/auspex")))
{
- c->UserList(user);
+ c->UserList(user, has_user);
return CMD_SUCCESS;
}
}