activated the new features
authorpk910 <philipp@zoelle1.de>
Sat, 23 Jul 2011 22:29:59 +0000 (00:29 +0200)
committerpk910 <philipp@zoelle1.de>
Sat, 23 Jul 2011 22:29:59 +0000 (00:29 +0200)
src/proto-p10.c

index 1e4702726fd9fcfe080c4f9a21beb34588056f24..4d5c4c9cbb206669b28ecdd44ea7276e2e7e7ac4 100644 (file)
@@ -508,7 +508,7 @@ irc_fakehost(struct userNode *user, const char *host, const char *ident, int for
     /* SRVX added the possibility for FAKE IDENTS
      * but this is currently *NOT* supported by our IRCu
      */
-    int useNewFakehost = 0;
+    int useNewFakehost = 1;
      
     if(useNewFakehost) putsock("%s " P10_FAKEHOST2 " %s %s %s%s", self->numeric, user->numeric, ident, host, force ? " FORCE" : "");
     else putsock("%s " P10_FAKEHOST " %s %s", self->numeric, user->numeric, host);
@@ -1777,11 +1777,9 @@ static CMD_FUNC(cmd_relay)
              } else {
                 devnull[0] = 0;
              }
-             /*
              if(!HANDLE_FLAGGED(hi, AUTOHIDE)) {
                 sprintf(tmp,"%s LA %s 0 %s\n",argv[3],hi->handle,devnull);
-             } else */ 
-             if(getfakehost(argv[4])) {
+             } else if(getfakehost(argv[4])) {
                 sprintf(tmp,"%s LA %s %s %s\n",argv[3],hi->handle,getfakehost(argv[4]),devnull);
              } else {
                 extern const char *hidden_host_suffix;