--- a/templatecmd.c Sun Mar 14 22:44:29 2010 +0200
+++ b/templatecmd.c Thu Mar 25 21:01:27 2010 +0200
@@ -35,7 +35,7 @@
static module_info_t info_templatecmd_experimental = {
.branch = "experimental",
- .api = 5,
+ .api = 10,
.version = PROJECT_VERSION,
.description = DESCRIPTION,
.requires = NULL,
@@ -46,7 +46,7 @@
module_info_t info_templatecmd = {
.branch = "dev",
- .api = 4,
+ .api = 11,
.version = PROJECT_VERSION,
.description = DESCRIPTION,
.requires = NULL,
@@ -118,7 +118,7 @@
for (tel = template_commands; tel; tel = tel -> next) {
tcmd_t *tcmd = (tcmd_t *) tel -> data;
- scr_LogPrint (LPRINT_NORMAL, "Templatecmd %s = %s", tcmd -> name, tcmd -> template);
+ scr_log_print (LPRINT_NORMAL, "Templatecmd %s = %s", tcmd -> name, tcmd -> template);
}
} else {
@@ -133,16 +133,16 @@
tcmd_t *tcmd = (tcmd_t *) tel -> data;
if (!strcmp (arg, tcmd -> name)) {
- scr_LogPrint (LPRINT_NORMAL, "Templatecmd %s = %s", tcmd -> name, tcmd -> template);
+ scr_log_print (LPRINT_NORMAL, "Templatecmd %s = %s", tcmd -> name, tcmd -> template);
return;
}
}
- scr_LogPrint (LPRINT_NORMAL, "No template with such name.");
+ scr_log_print (LPRINT_NORMAL, "No template with such name.");
} else if (nend == arg) // error
- scr_LogPrint (LPRINT_NORMAL, "You must specify command name.");
+ scr_log_print (LPRINT_NORMAL, "You must specify command name.");
else { // new/modify tcmd