Don't create a new identity if it exists already.
This commit is contained in:
parent
6b24f3a0b9
commit
dfcb43d4f8
1 changed files with 1 additions and 0 deletions
|
@ -557,6 +557,7 @@ tox_weechat_cmd_tox(void *data, struct t_gui_buffer *buffer,
|
||||||
weechat_prefix("error"),
|
weechat_prefix("error"),
|
||||||
weechat_plugin->name,
|
weechat_plugin->name,
|
||||||
name);
|
name);
|
||||||
|
return WEECHAT_RC_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct t_tox_weechat_identity *identity = tox_weechat_identity_new(name);
|
struct t_tox_weechat_identity *identity = tox_weechat_identity_new(name);
|
||||||
|
|
Loading…
Reference in a new issue