Add user command support for sending private messages.

Can send to either the currently selected user (the %[userSID] keyword
substitution) or a given SID. To make the latter useful (e.g, for
commands sent to a bot) support for static SIDs is needed.
This commit is contained in:
Blair Bonnett
2012-08-02 21:13:34 +12:00
parent 66854bc204
commit 2608f6be76
4 changed files with 66 additions and 0 deletions

View File

@@ -200,6 +200,7 @@ void plugin_register_callback_functions(struct plugin_handle* handle)
handle->hub.set_description = cbfunc_set_hub_description;
handle->hub.ucmd_create = cbfunc_ucmd_create;
handle->hub.ucmd_add_chat = cbfunc_ucmd_add_chat;
handle->hub.ucmd_add_pm = cbfunc_ucmd_add_pm;
handle->hub.ucmd_send = cbfunc_ucmd_send;
handle->hub.ucmd_free = cbfunc_ucmd_free;
}