From b5b24939ea50274314d18191b6d366cd72cabfd5 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Fri, 2 Jul 2021 09:19:58 -0500 Subject: [PATCH] Set IRC/Purple passwords as 'secret' fields --- protocols/irc/Templates.rdef | 1 + protocols/purple/PurpleApp.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/protocols/irc/Templates.rdef b/protocols/irc/Templates.rdef index bda2e30..9719663 100644 --- a/protocols/irc/Templates.rdef +++ b/protocols/irc/Templates.rdef @@ -19,6 +19,7 @@ resource(1000, "account") message('IMst') { "name" = "password", "description" = "Password:", + bool "is_secret" = true, int32 "type" = 'CSTR' }, "setting" = message diff --git a/protocols/purple/PurpleApp.cpp b/protocols/purple/PurpleApp.cpp index d394ada..7e5e4d0 100644 --- a/protocols/purple/PurpleApp.cpp +++ b/protocols/purple/PurpleApp.cpp @@ -388,6 +388,7 @@ PurpleApp::_ParseProtoOptions(PurplePluginProtocolInfo* info) passwd.AddString("name", "password"); passwd.AddString("description", "Password"); passwd.AddInt32("type", B_STRING_TYPE); + passwd.AddBool("is_secret", true); temp.AddMessage("setting", &passwd); // Whatever custom settings the protocol might like!