소스 검색

Enable host-user matching for bot links

Bryan Drewery 13 년 전
부모
커밋
cd17e8db0c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/dcc.c

+ 3 - 3
src/dcc.c

@@ -1825,9 +1825,9 @@ dcc_telnet_id(int idx, char *buf, int atr)
     if (!u)
       ok = 0;
 
-//    // Restrict connect to matching the user who they claim to be
-//    if (u && strcasecmp(nick, u->handle))
-//      ok = 0;
+    // Restrict connect to matching the user who they claim to be
+    if (u && strcasecmp(nick, u->handle))
+      ok = 0;
 
     if (!ok) {
       putlog(LOG_BOTS, "*", "Denied link to '%s': Host not recognized: %s", nick, dcc[idx].host);