summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-05 02:24:39 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-05 02:24:39 +0000
commit2726877999b4660ca318b4e98ba2e60caeff3974 (patch)
tree38ffd1707c1ed5d2d3b8c272ef85dfaaf577f22b /src/core
parenta02f8503e75eb4bb03c79a8d4c4e93a825302fff (diff)
Merge branch 'anopeng' into anopeng-config
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1420 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rw-r--r--src/core/cs_logout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/cs_logout.c b/src/core/cs_logout.c
index fff40ed4e..d8fb911ed 100644
--- a/src/core/cs_logout.c
+++ b/src/core/cs_logout.c
@@ -87,6 +87,9 @@ int do_logout(User * u)
notice_lang(s_ChanServ, u, NICK_X_NOT_IN_USE, nick);
} else if (!is_servadmin && u2 != u && !is_real_founder(u, ci)) {
notice_lang(s_ChanServ, u, ACCESS_DENIED);
+ /* Since founders can not logout we should tell them -katsklaw */
+ } else if (u2 == u && is_real_founder(u, ci)) {
+ notice_lang(s_ChanServ, u, CHAN_LOGOUT_FOUNDER_FAILED, chan);
} else {
if (u2) {
make_unidentified(u2, ci);