]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
Refactor port binding, warning not yet tested fully
[user/henk/code/inspircd.git] / include / channels.h
index 305ff9974e8243c71f8f715e8db5c6d59f1b42e9..f68f838894e8defb9460763bd09f99c1bc10f049 100644 (file)
@@ -69,7 +69,7 @@ typedef std::vector<BanItem>  BanList;
 
 /** A list of users on a channel
  */
-typedef std::map<userrec*,userrec*> CUList;
+typedef std::map<userrec*,std::string> CUList;
 
 /** Shorthand for CUList::iterator
  */
@@ -436,8 +436,10 @@ class chanrec : public Extensible
 
        /** Spool the NAMES list for this channel to the given user
         * @param user The user to spool the NAMES list to
+        * @param ulist The user list to send, NULL to use the
+        * channel's default names list of everyone
         */
-       void UserList(userrec *user);
+       void UserList(userrec *user, CUList* ulist = NULL);
 
        /** Get the number of invisible users on this channel
         * @return Number of invisible users