/***********************************************************************
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
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) {
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 */