ソースを参照

* Compile error

svn: 987
Bryan Drewery 22 年 前
コミット
1703240717
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/dcc.c

+ 2 - 2
src/dcc.c

@@ -1534,8 +1534,8 @@ static void dcc_telnet_id(int idx, char *buf, int atr)
   strcpy(dcc[idx].nick, buf);
   if (glob_bot(fr)) {
     /* the leaf bot set encstatus right after it sent it's nick, so the hub must now as well. */
-    socklist[snum].encstatus = 1;
-    socklist[snum].gz = 1;
+    socklist[dcc[idx].sock].encstatus = 1;
+    socklist[dcc[idx].sock].gz = 1;
 
     if (!egg_strcasecmp(conf.bot->nick, dcc[idx].nick)) {
       dprintf(idx, "error You cannot link using my nick.\n");