mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 13:16:20 +00:00
@@ -497,3 +497,25 @@ api_disco_add_feature(char *plugin_name, char *feature)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
api_encryption_reset(const char *const barejid)
|
||||
{
|
||||
if (barejid == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
ProfChatWin *chatwin = wins_get_chat(barejid);
|
||||
if (chatwin == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (chatwin->pgp_send) {
|
||||
chatwin->pgp_send = FALSE;
|
||||
win_println((ProfWin*)chatwin, THEME_DEFAULT, '!', "PGP encryption disabled.");
|
||||
}
|
||||
|
||||
if (chatwin->is_otr) {
|
||||
chatwin_otr_unsecured(chatwin);
|
||||
otr_end_session(chatwin->barejid);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user