summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
authordane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-08-23 18:36:58 +0000
committerdane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-08-23 18:36:58 +0000
commit61a23cd017465cd2bff5f037cf54e051a6318b37 (patch)
tree5827cad42b833c88be5783d457ffb03b00c785bf /src/commands.c
parent26ea4bc11b4e07bbeb95031f2337ff695f83cc16 (diff)
BUILD : 1.7.5 (327) BUGS : none NOTES : Merged anope-capab into main trunk...
git-svn-id: svn://svn.anope.org/anope/trunk@327 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@203 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/commands.c b/src/commands.c
index 2863d6ca3..833c987c7 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -22,7 +22,7 @@
* command exists.
*/
-Command *lookup_cmd(Command * list, const char *cmd)
+Command *lookup_cmd(Command * list, char *cmd)
{
Command *c;
@@ -39,22 +39,20 @@ Command *lookup_cmd(Command * list, const char *cmd)
* privilege to do so; if not, print an appropriate error message.
*/
-void run_cmd(const char *service, User * u, Command * list,
- const char *cmd)
+void run_cmd(char *service, User * u, Command * list, char *cmd)
{
Command *c = lookup_cmd(list, cmd);
do_run_cmd(service, u, c, cmd);
}
-void mod_run_cmd(const char *service, User * u, CommandHash * cmdTable[],
+void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[],
const char *cmd)
{
Command *c = findCommand(cmdTable, cmd);
do_run_cmd(service, u, c, cmd);
}
-void do_run_cmd(const char *service, User * u, Command * c,
- const char *cmd)
+void do_run_cmd(char *service, User * u, Command * c, const char *cmd)
{
int retVal = 0;
Command *current;
@@ -97,8 +95,7 @@ void do_run_cmd(const char *service, User * u, Command * c,
/* Print a help message for the given command. */
-void do_help_cmd(const char *service, User * u, Command * c,
- const char *cmd)
+void do_help_cmd(char *service, User * u, Command * c, const char *cmd)
{
Command *current;
int has_had_help = 0;
@@ -161,14 +158,13 @@ void do_help_cmd(const char *service, User * u, Command * c,
}
}
-void help_cmd(const char *service, User * u, Command * list,
- const char *cmd)
+void help_cmd(char *service, User * u, Command * list, char *cmd)
{
Command *c = lookup_cmd(list, cmd);
do_help_cmd(service, u, c, cmd);
}
-void mod_help_cmd(const char *service, User * u, CommandHash * cmdTable[],
+void mod_help_cmd(char *service, User * u, CommandHash * cmdTable[],
const char *cmd)
{
Command *c = findCommand(cmdTable, cmd);