summaryrefslogtreecommitdiff
path: root/modules/commands/ns_ajoin.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-02-05 08:20:45 -0500
committerAdam <Adam@anope.org>2014-02-05 08:46:56 -0500
commitfad1da81a3ad1338d7fb5dc9ccee84bb1d2f57e1 (patch)
tree35c367403ccb3f16120877b14585720d565046f4 /modules/commands/ns_ajoin.cpp
parentbb0e2a9a07e0931532d5f77486e2b11de2fa2997 (diff)
Process mode changes in ns_ajoin before joining users, fixes not being able to ajoin users to +R channels on Unreal
Diffstat (limited to 'modules/commands/ns_ajoin.cpp')
-rw-r--r--modules/commands/ns_ajoin.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp
index 62fcd70e7..54caaaf7e 100644
--- a/modules/commands/ns_ajoin.cpp
+++ b/modules/commands/ns_ajoin.cpp
@@ -322,7 +322,10 @@ class NSAJoin : public Module
AJoinList *channels = u->Account()->GetExt<AJoinList>("ajoinlist");
if (channels == NULL)
- channels = u->Account()->Extend<AJoinList>("ajoinlist");
+ return;
+
+ /* Set +r now, so we can ajoin users into +R channels */
+ ModeManager::ProcessModes();
for (unsigned i = 0; i < (*channels)->size(); ++i)
{