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

Fix compile errors in hs_* modules, as well as add some const-safeness to HostServ functions.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1980 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2009-02-10 16:56:24 +00:00
parent 2bf017a0e1
commit b496e60eb0
6 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ class CommandHSDel : public Command
void OnSyntaxError(User *u)
{
syntax_error(s_HostServ, u, "DEL", HOST_DEL_SYNTAX, s_HostServ);
syntax_error(s_HostServ, u, "DEL", HOST_DEL_SYNTAX);
}
};
+2 -2
View File
@@ -56,13 +56,13 @@ class CommandHSDelAll : public Command
if (!is_host_remover(u))
return false;
notice_lang(s_HostServ, u, HOST_HELP_ALL);
notice_lang(s_HostServ, u, HOST_HELP_DELALL);
return true;
}
void OnSyntaxError(User *u)
{
syntax_error(s_HostServ, u, "DELALL", HOST_DELALL_SYNTAX, s_HostServ);
syntax_error(s_HostServ, u, "DELALL", HOST_DELALL_SYNTAX);
}
};
+1 -1
View File
@@ -152,7 +152,7 @@ class CommandHSSet : public Command
void OnSyntaxError(User *u)
{
syntax_error(s_HostServ, u, "SET", HOST_SET_SYNTAX, s_HostServ);
syntax_error(s_HostServ, u, "SET", HOST_SET_SYNTAX);
}
};
+1 -1
View File
@@ -152,7 +152,7 @@ class CommandHSSetAll : public Command
void OnSyntaxError(User *u)
{
syntax_error(s_HostServ, u, "SETALL", HOST_SETALL_SYNTAX, s_HostServ);
syntax_error(s_HostServ, u, "SETALL", HOST_SETALL_SYNTAX);
}
};
+5 -5
View File
@@ -125,7 +125,7 @@ HostCore *hostCoreListHead()
* @param time Time the vhost was Set
* @return HostCore
*/
HostCore *createHostCorelist(HostCore * next, char *nick, char *vIdent,
HostCore *createHostCorelist(HostCore * next, const char *nick, char *vIdent,
char *vHost, const char *creator, int32 tmp_time)
{
@@ -174,7 +174,7 @@ HostCore *createHostCorelist(HostCore * next, char *nick, char *vIdent,
* @param found If found
* @return HostCore
*/
HostCore *findHostCore(HostCore * phead, char *nick, bool* found)
HostCore *findHostCore(HostCore * phead, const char *nick, bool* found)
{
HostCore *previous, *current;
@@ -206,7 +206,7 @@ HostCore *findHostCore(HostCore * phead, char *nick, bool* found)
}
/*************************************************************************/
HostCore *insertHostCore(HostCore * phead, HostCore * prev, char *nick,
HostCore *insertHostCore(HostCore * phead, HostCore * prev, const char *nick,
char *vIdent, char *vHost, const char *creator,
int32 tmp_time)
{
@@ -285,7 +285,7 @@ HostCore *deleteHostCore(HostCore * phead, HostCore * prev)
}
/*************************************************************************/
void addHostCore(char *nick, char *vIdent, char *vhost, const char *creator,
void addHostCore(const char *nick, char *vIdent, char *vhost, const char *creator,
int32 tmp_time)
{
HostCore *tmp;
@@ -339,7 +339,7 @@ char *getvIdent(char *nick)
}
/*************************************************************************/
void delHostCore(char *nick)
void delHostCore(const char *nick)
{
HostCore *tmp;
bool found = false;