1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 17:26:38 +02:00

Process mode changes in ns_ajoin before joining users, fixes not being able to ajoin users to +R channels on Unreal

This commit is contained in:
Adam
2014-02-05 08:20:45 -05:00
parent bb0e2a9a07
commit fad1da81a3
+4 -1
View File
@@ -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)
{