Don't create a new identity if it exists already.

This commit is contained in:
Håvard Pettersson 2014-09-17 16:35:36 +02:00
parent 6b24f3a0b9
commit dfcb43d4f8

View File

@ -557,6 +557,7 @@ tox_weechat_cmd_tox(void *data, struct t_gui_buffer *buffer,
weechat_prefix("error"),
weechat_plugin->name,
name);
return WEECHAT_RC_OK;
}
struct t_tox_weechat_identity *identity = tox_weechat_identity_new(name);