From dd2ace5916a8bb24801e74aa8b209d396e012d9b Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 9 Jan 2010 17:29:28 +0000 Subject: Disallow adding prefix-mode when it is already set (fixes bug #935) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12245 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/channels.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/channels.h') diff --git a/include/channels.h b/include/channels.h index 59f4d1cf3..591847407 100644 --- a/include/channels.h +++ b/include/channels.h @@ -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 -- cgit v1.2.3