From 0c476dd0ca2dc9fc811d760306a541caddf30edb Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 9 Apr 2014 15:02:10 +0200 Subject: 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 --- include/channels.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index 628f34f9f..736ca2e98 100644 --- a/include/channels.h +++ b/include/channels.h @@ -289,8 +289,9 @@ class CoreExport Channel : public Extensible, public InviteBase /** Spool the NAMES list for this channel to the given user * @param user The user to spool the NAMES list to + * @param isinside If true, the user is inside the channel, if not then false */ - void UserList(User *user); + void UserList(User* user, bool isinside = true); /** Get the value of a users prefix on this channel. * @param user The user to look up -- cgit v1.2.3