@@ -109,6 +109,14 @@ export default class LoginServer {
109109 return ;
110110 }
111111
112+ if ( Environment . NODE_MEMBERS && ! account . members ) {
113+ s . send ( JSON . stringify ( {
114+ replyTo,
115+ response : 9
116+ } ) ) ;
117+ return ;
118+ }
119+
112120 if ( reconnecting && account . logged_in === nodeId ) {
113121 await db . insertInto ( 'session' ) . values ( {
114122 uuid : socket ,
@@ -129,14 +137,16 @@ export default class LoginServer {
129137 staffmodlevel : account . staffmodlevel ,
130138 muted_until : account . muted_until ,
131139 save : save . toString ( 'base64' ) ,
140+ members : account . members
132141 } ) ) ;
133142 } else {
134143 s . send ( JSON . stringify ( {
135144 replyTo,
136145 response : 2 ,
137146 account_id : account . id ,
138147 staffmodlevel : account . staffmodlevel ,
139- muted_until : account . muted_until
148+ muted_until : account . muted_until ,
149+ members : account . members
140150 } ) ) ;
141151 }
142152 return ;
@@ -182,7 +192,8 @@ export default class LoginServer {
182192 response : 4 ,
183193 account_id : account . id ,
184194 staffmodlevel : account . staffmodlevel ,
185- muted_until : account . muted_until
195+ muted_until : account . muted_until ,
196+ members : account . members
186197 } ) ) ;
187198 return ;
188199 }
@@ -194,7 +205,8 @@ export default class LoginServer {
194205 account_id : account . id ,
195206 staffmodlevel : account . staffmodlevel ,
196207 save : save . toString ( 'base64' ) ,
197- muted_until : account . muted_until
208+ muted_until : account . muted_until ,
209+ members : account . members
198210 } ) ) ;
199211 } else if ( type === 'player_logout' ) {
200212 const { replyTo, username, save } = msg ;
0 commit comments