From b374f97711d21ac7965cfc9db9cf4e0e02029546 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Fri, 4 Aug 2006 10:05:03 +0000 Subject: BUILD : 1.7.14 (1108) BUGS : 569 NOTES : Fixed giving modes for unregistered users :) git-svn-id: svn://svn.anope.org/anope/trunk@1108 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@832 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + src/channels.c | 7 ++++++- version.log | 6 +++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index d6f3235c6..1dbbc833a 100644 --- a/Changes +++ b/Changes @@ -52,6 +52,7 @@ Provided by Anope Dev. - 2006 08/02 F Fixed very nasty typecast. GCC Hardened should now work. [#557] 08/03 F Corrected usermodes for ratbox and shadow. [#558] 08/04 F Various small fixes for Charybdis. [#561] +08/04 F Autovoice for unregistered users works again. [#569] Provided by ThaPrince - 2006 05/19 A Plexus 3 support. [ #00] diff --git a/src/channels.c b/src/channels.c index b2f31ae5a..7df6c2089 100644 --- a/src/channels.c +++ b/src/channels.c @@ -1368,8 +1368,13 @@ void chan_set_correct_modes(User * user, Channel * c, int give_modes) if (debug) alog("debug: Setting correct user modes for %s on %s (current status: %d, %sgiving modes)", user->nick, c->name, status, (give_modes ? "" : "not ")); + /* Changed the second line of this if a bit, to make sure unregistered + * users can always get modes (IE: they always have autoop enabled). Before + * this change, you were required to have a registered nick to be able + * to receive modes. I wonder who added that... *looks at Rob* ;) -GD + */ if (give_modes && (get_ignore(user->nick) == NULL) - && (user->na && !(user->na->nc->flags & NI_AUTOOP))) { + && (!user->na || !(user->na->nc->flags & NI_AUTOOP))) { if (ircd->owner && is_founder(user, ci)) add_modes |= CUS_OWNER; else if ((ircd->protect || ircd->admin) diff --git a/version.log b/version.log index 7559c64ee..cc27243f1 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="14" VERSION_EXTRA="" -VERSION_BUILD="1107" +VERSION_BUILD="1108" # $Log$ # +# BUILD : 1.7.14 (1108) +# BUGS : 569 +# NOTES : Fixed giving modes for unregistered users :) +# # BUILD : 1.7.14 (1107) # BUGS : 561 # NOTES : Various small fixes for charybdis -- cgit