]> jfr.im git - irc/evilnet/x3.git/commitdiff
Changed wheel of misfortune nick change pseudo user to use a hard coded host name...
authorMatthew Beeching <redacted>
Sun, 29 Aug 2010 18:23:36 +0000 (19:23 +0100)
committerMatthew Beeching <redacted>
Sun, 29 Aug 2010 18:23:36 +0000 (19:23 +0100)
ChangeLog
src/chanserv.c

index 3f62bf10d4ece735de04cf786354ff950812fd27..c72602a08149aa342ed0bf06507725f21c0cb190 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 /***********************************************************************
 X3 ChangeLog
 
+2010-08-29  Matthew Beeching  <jobe@mdbnet.co.uk>
+
+       * src/chanserv.c: Changed wheel of misfortune nick change pseudo
+       user to use a hard coded host name to prevent accidentally giving
+       out a users real host.
+
 2010-08-19  Matthew Beeching  <jobe@mdbnet.co.uk>
 
        * src/proto-p10.c: Changed TOK_PRIVS to "PR" to match current ircu
index 00faf6dad10ad90080248277174c291732db474b..9f324caf08e8f7f37ce17e44eeef5d824ba1814a 100644 (file)
@@ -7814,14 +7814,12 @@ static CHANSERV_FUNC(cmd_spin)
 
          char *oldnick = NULL;
          char *oldident = NULL;
-         char *oldhost = NULL;
          char abusednick[NICKLEN] = "";
          int abusednum = 1 + (int) (10000.0 * (rand() / (RAND_MAX + 1.0)));
          struct userNode *clone;
 
          oldnick = strdup(user->nick);
          oldident = strdup(user->ident);
-         oldhost = strdup(user->hostname);
 
          //snprintf(abusednick, NICKLEN, "Abused%d", abusednum+(1 + rand() % 120));
          while (1) {
@@ -7833,7 +7831,7 @@ static CHANSERV_FUNC(cmd_spin)
 
          SVSNickChange(user, abusednick);
          irc_svsnick(chanserv, user, abusednick);
-         clone = AddLocalUser(oldnick, oldident, oldhost, "I got abused by the wheel of misfortune :D", "+i");
+         clone = AddLocalUser(oldnick, oldident, "abused.by.wheel.of.misfortune", "I got abused by the wheel of misfortune :D", "+i");
          timeq_add(now + 300, chanserv_remove_abuse, clone->nick);
     }
     /* kill */