From f4db8c5360a71bf2c815602ade39800033f7ae16 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Sun, 7 Feb 2010 00:03:10 +0000 Subject: [PATCH] fixed some uninitialized pointers git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2785 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules/cs_enforce.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c index ae7d44305..2173c50ab 100644 --- a/src/modules/cs_enforce.c +++ b/src/modules/cs_enforce.c @@ -92,7 +92,6 @@ class CommandCSEnforce : public Command int16 old_nojoin_level; char mask[BUFSIZE]; const char *reason; - User *u; if (!(ci = c->ci)) return; @@ -109,10 +108,10 @@ class CommandCSEnforce : public Command if (check_access(uc->user, ci, CA_NOJOIN)) { - get_idealban(ci, u, mask, sizeof(mask)); - reason = getstring(u, CHAN_NOT_ALLOWED_TO_JOIN); + get_idealban(ci, uc->user, mask, sizeof(mask)); + reason = getstring(uc->user, CHAN_NOT_ALLOWED_TO_JOIN); c->SetMode(NULL, CMODE_BAN, mask); - c->Kick(NULL, u, "%s", reason); + c->Kick(NULL, uc->user, "%s", reason); } } @@ -124,7 +123,6 @@ class CommandCSEnforce : public Command ChannelInfo *ci; char mask[BUFSIZE]; const char *reason; - User *u; if (!(ci = c->ci)) return; @@ -143,7 +141,7 @@ class CommandCSEnforce : public Command { c->SetMode(NULL, CMODE_BAN, mask); } - c->Kick(NULL, u, "%s", reason); + c->Kick(NULL, uc->user, "%s", reason); } } }