summaryrefslogtreecommitdiff
path: root/include/channels.h
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 /include/channels.h
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 'include/channels.h')
-rw-r--r--include/channels.h3
1 files changed, 2 insertions, 1 deletions
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<Channel>
/** 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