More support for multiple identities.
This commit is contained in:
parent
edc5e16d8a
commit
e7ec533944
11 changed files with 516 additions and 121 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "tox-weechat-commands.h"
|
||||
#include "tox-weechat-gui.h"
|
||||
#include "tox-weechat-friend-requests.h"
|
||||
#include "tox-weechat-config.h"
|
||||
|
||||
#include "tox-weechat.h"
|
||||
|
||||
|
@ -24,17 +25,20 @@ weechat_plugin_init(struct t_weechat_plugin *plugin, int argc, char *argv[])
|
|||
{
|
||||
weechat_plugin = plugin;
|
||||
|
||||
struct t_tox_weechat_identity *identity = tox_weechat_identity_new("tox");
|
||||
tox_weechat_identity_connect(identity);
|
||||
tox_weechat_config_init();
|
||||
tox_weechat_config_read();
|
||||
tox_weechat_commands_init();
|
||||
tox_weechat_gui_init();
|
||||
|
||||
tox_weechat_identity_autoconnect();
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
int
|
||||
weechat_plugin_end(struct t_weechat_plugin *plugin)
|
||||
{
|
||||
tox_weechat_config_write();
|
||||
tox_weechat_identity_free_all();
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue