From fad1da81a3ad1338d7fb5dc9ccee84bb1d2f57e1 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 5 Feb 2014 08:20:45 -0500 Subject: [PATCH] Process mode changes in ns_ajoin before joining users, fixes not being able to ajoin users to +R channels on Unreal --- modules/commands/ns_ajoin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); if (channels == NULL) - channels = u->Account()->Extend("ajoinlist"); + return; + + /* Set +r now, so we can ajoin users into +R channels */ + ModeManager::ProcessModes(); for (unsigned i = 0; i < (*channels)->size(); ++i) {