1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 09:33:12 +02:00

Fix a few (easy) compile errors.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1978 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2009-02-10 16:19:14 +00:00
parent fe39b96db7
commit 5fa7167181
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -27,8 +27,8 @@ class CommandCSSuspend : public Command
CommandReturn Execute(User *u, std::vector<std::string> &params)
{
ChannelInfo *ci;
char *chan = params[0].c_str();
char *reason = params.size() > 1 ? params[1].c_str() : NULL;
const char *chan = params[0].c_str();
const char *reason = params.size() > 1 ? params[1].c_str() : NULL;
Channel *c;
@@ -71,12 +71,12 @@ class CommandCSSuspend : public Command
if ((c = findchan(ci->name)))
{
struct c_userlist *cu, *next;
struct c_userlist *cu, *nextu;
const char *av[3];
for (cu = c->users; cu; cu = next)
for (cu = c->users; cu; cu = nextu)
{
next = cu->next;
nextu = cu->next;
if (is_oper(cu->user))
continue;
+2 -2
View File
@@ -26,8 +26,8 @@ class CommandCSTopic : public Command
CommandReturn Execute(User *u, std::vector<std::string> &params)
{
char *chan = params[0].c_str();
char *topic = params.size() > 1 ? params[1].c_str() : NULL;
const char *chan = params[0].c_str();
const char *topic = params.size() > 1 ? params[1].c_str() : NULL;
Channel *c;
ChannelInfo *ci;