summaryrefslogtreecommitdiff
path: root/src/cmd4.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-02 22:10:00 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-07 15:28:25 +0200
commita5a4f737005258097fb46a7c746ac202575fd03e (patch)
treef10f14909a953c5fbbeb4730244525a7844092d8 /src/cmd4.c
parent13543856597dc59f3cf8b7ecbf7d2e77e07c7f69 (diff)
Lua: Move module initialization code to C
Diffstat (limited to 'src/cmd4.c')
-rw-r--r--src/cmd4.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cmd4.c b/src/cmd4.c
index c4440428..e9125d3d 100644
--- a/src/cmd4.c
+++ b/src/cmd4.c
@@ -2808,15 +2808,11 @@ void do_cmd_note(void)
*/
void do_cmd_version(void)
{
- cptr author, email;
-
- call_lua("get_module_info", "(s,d)", "s", "author", 1, &author);
- call_lua("get_module_info", "(s,d)", "s", "author", 2, &email);
-
/* Silly message */
msg_format("You are playing %s made by %s (%s).",
get_version_string(),
- author, email);
+ modules[game_module_idx].meta.author.name,
+ modules[game_module_idx].meta.author.email);
call_lua("patchs_display", "()", "");
}