]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
Move nick change code out of cmd_nick; fixes double-invocation of hooks and may elimi...
[user/henk/code/inspircd.git] / include / channels.h
index 59f4d1cf35530b35eb46ab98fbe79a1e717b3739..cd6a5a4b8f5422774382a7329d87eee16046d3d5 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -362,8 +362,9 @@ class CoreExport Channel : public Extensible
         * @param user The user to associate the privilage with
         * @param prefix The prefix character to associate
         * @param adding True if adding the prefix, false when removing
+        * @return True if a change was made
         */
-       void SetPrefix(User* user, char prefix, bool adding);
+       bool SetPrefix(User* user, char prefix, bool adding);
 
        /** Check if a user is banned on this channel
         * @param user A user to check against the banlist