소스 검색

Add some missing user pointer invalidations in clear_usrlist

Bryan Drewery 10 년 전
부모
커밋
8ebef2567b
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/userrec.cc

+ 7 - 0
src/userrec.cc

@@ -189,6 +189,13 @@ void clear_userlist(struct userrec *bu)
 
     conf.bot->u = NULL;
 
+    for (tand_t* bot = tandbot; bot; bot = bot->next)
+      bot->u = NULL;
+
+    if (!conf.bot->hub) {
+      Auth::NullUsers();
+    }
+
     clear_chanlist();
     lastuser = NULL;