/** Return all of a users mode prefixes into a char* string.
* @param user The user to look up
- * @return A list of all prefix characters. There is no gauranteed order of prefixes.
+ * @return A list of all prefix characters. The prefixes will always
+ * be in rank order, greatest first, as certain IRC clients require
+ * this when multiple prefixes are used names lists.
*/
const char* GetAllPrefixChars(userrec* user);
*/
void SetPrefix(userrec* user, char prefix, unsigned int prefix_rank, bool adding);
+ /** Check if a user is banned on this channel
+ * @param user A user to check against the banlist
+ * @returns True if the user given is banned
+ */
+ bool IsBanned(userrec* user);
+
/** Destructor for chanrec
*/
virtual ~chanrec() { /* stub */ }