diff options
author | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-07 00:03:10 +0000 |
---|---|---|
committer | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-07 00:03:10 +0000 |
commit | f4db8c5360a71bf2c815602ade39800033f7ae16 (patch) | |
tree | fbee489d45ccdc2dba9dd877290cddf6451a3747 /src/modules/cs_enforce.c | |
parent | 6b2f9e25cd962b6bd5f4a4c3d6ca418fb67dfa63 (diff) |
fixed some uninitialized pointers
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2785 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/cs_enforce.c')
-rw-r--r-- | src/modules/cs_enforce.c | 10 |
1 files 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); } } } |