Просмотр исходного кода

* Rewrote the fix for invalid userfile
Was causing some problems down the road.


svn: 829

Bryan Drewery 22 лет назад
Родитель
Сommit
02f2ef3890
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/mod/share.mod/share.c

+ 4 - 2
src/mod/share.mod/share.c

@@ -1780,8 +1780,6 @@ Context;
 
 Context;
     unlink(dcc[idx].u.xfer->filename); /* why the fuck was this not here, stupid eggdev team. */
-    putlog(LOG_MISC, "*", "%s", USERF_CANTREAD);
-    loading = 0;
     clear_userlist(u);		/* Clear new, obsolete, user list.	*/
     clear_chanlist();		/* Remove all user references from the
 				   channel lists.			*/
@@ -1792,8 +1790,12 @@ Context;
 
     userlist = ou;		/* Revert to old user list.		*/
     lastuser = NULL;		/* Reset last accessed user ptr.	*/
+
     checkchans(2); 		/* un-flag the channels, we are keeping them.. */
 
+    /* old userlist is now being used, safe to do this stuff... */
+    loading = 0;
+    putlog(LOG_MISC, "*", "%s", USERF_CANTREAD);
     dprintf(idx, "bye\n");
     egg_snprintf(xx, sizeof xx, "Disconnected %s (can't read userfile)", dcc[j].nick);
     botnet_send_unlinked(j, dcc[j].nick, xx);