summaryrefslogtreecommitdiff
path: root/src/cmd2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-18 21:31:32 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-23 12:07:54 +0100
commitddebc7f4803cc967427db1fdb7c2196afc114c14 (patch)
treeb16d5ffeff7b83f25d5f6944d0c10fd41af736fe /src/cmd2.cc
parent9a10050acb1c6398eedfe9c20611ac31f17802d5 (diff)
Update HOOK_CHAT to new-style hook
Diffstat (limited to 'src/cmd2.cc')
-rw-r--r--src/cmd2.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd2.cc b/src/cmd2.cc
index e0a1bb08..2c42514d 100644
--- a/src/cmd2.cc
+++ b/src/cmd2.cc
@@ -5154,7 +5154,8 @@ void do_cmd_chat()
}
/* Process hook if there are any */
- if (!process_hooks(HOOK_CHAT, "(d)", c_ptr->m_idx))
+ struct hook_chat_in in = { c_ptr->m_idx };
+ if (!process_hooks_new(HOOK_CHAT, &in, NULL))
{
msg_print("The monster does not want to chat.");
}