diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-04 05:45:58 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-04 05:45:58 +0000 |
commit | 2708eea5d13c249143b83fbaa8b552992f0ac8b6 (patch) | |
tree | 5afffad5f83ca6daa89784c27f4d4e9c5f4eb8fc /src/modules/cs_enforce.c | |
parent | f58026749b0c0770a322893b27c013168be5cdbc (diff) |
Removed NICKMAX and CHANMAX, replaced user->nick, c->name, and ci->name with std::string
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2732 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/cs_enforce.c')
-rw-r--r-- | src/modules/cs_enforce.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c index 55cc6f5a3..32f2c85c2 100644 --- a/src/modules/cs_enforce.c +++ b/src/modules/cs_enforce.c @@ -62,7 +62,7 @@ class CommandCSEnforce : public Command return; if (debug) - alog("debug: cs_enforce: Enforcing SECUREOPS on %s", c->name); + alog("debug: cs_enforce: Enforcing SECUREOPS on %s", c->name.c_str()); /* Dirty hack to allow chan_set_correct_modes to work ok. * We pretend like SECUREOPS is on so it doesn't ignore that @@ -105,7 +105,7 @@ class CommandCSEnforce : public Command return; if (debug) - alog("debug: cs_enforce: Enforcing RESTRICTED on %s", c->name); + alog("debug: cs_enforce: Enforcing RESTRICTED on %s", c->name.c_str()); old_nojoin_level = ci->levels[CA_NOJOIN]; if (ci->levels[CA_NOJOIN] < 0) @@ -122,8 +122,8 @@ class CommandCSEnforce : public Command reason = getstring(u, CHAN_NOT_ALLOWED_TO_JOIN); c->SetMode(NULL, CMODE_BAN, mask); ircdproto->SendKick(whosends(ci), ci->c, u, "%s", reason); - av[0] = ci->name; - av[1] = u->nick; + av[0] = ci->name.c_str(); + av[1] = u->nick.c_str(); av[2] = reason; do_kick(Config.s_ChanServ, 3, av); } @@ -147,7 +147,7 @@ class CommandCSEnforce : public Command return; if (debug) - alog("debug: cs_enforce: Enforcing mode +R on %s", c->name); + alog("debug: cs_enforce: Enforcing mode +R on %s", c->name.c_str()); user = c->users; do @@ -163,8 +163,8 @@ class CommandCSEnforce : public Command c->SetMode(NULL, CMODE_BAN, mask); } ircdproto->SendKick(whosends(ci), ci->c, u, "%s", reason); - av[0] = ci->name; - av[1] = u->nick; + av[0] = ci->name.c_str(); + av[1] = u->nick.c_str(); av[2] = reason; do_kick(Config.s_ChanServ, 3, av); } |