summaryrefslogtreecommitdiff
path: root/plugins/mRadio
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-12-04 16:08:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-12-04 16:08:03 +0300
commit3bb16e798cb51d5764aacbefd4edf26f52d8c4f0 (patch)
tree59dbb53fc9496d660ec2ef2846a4eab0f1720b88 /plugins/mRadio
parent3216d8df5cb355f34c82ed10b7e40bab7525b697 (diff)
GetContactProto: useless duplicate function replaced with standard Proto_GetBaseAccountName
Diffstat (limited to 'plugins/mRadio')
-rw-r--r--plugins/mRadio/i_optdlg.inc6
-rw-r--r--plugins/mRadio/i_visual.inc2
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mRadio/i_optdlg.inc b/plugins/mRadio/i_optdlg.inc
index 5146b57adc..fe26a0bf11 100644
--- a/plugins/mRadio/i_optdlg.inc
+++ b/plugins/mRadio/i_optdlg.inc
@@ -681,7 +681,7 @@ begin
begin
if value._type=DBVT_DELETED then
begin
- if StrCmp(Proto_GetProtoName(wParam),PluginName)<>0 then exit;
+ if StrCmp(Proto_GetBaseAccountName(wParam),PluginName)<>0 then exit;
pc:=DBReadString(wParam,PluginName,optNick);
DBWriteString(wParam,strCList,optMyHandle,pc);
@@ -695,7 +695,7 @@ begin
if StrCmp(szSetting,optAge)=0 then
begin
- if StrCmp(Proto_GetProtoName(wParam),PluginName)<>0 then exit;
+ if StrCmp(Proto_GetBaseAccountName(wParam),PluginName)<>0 then exit;
if value._type=DBVT_DELETED then
i:=DBReadWord(wParam,PluginName,optAge)
else
@@ -709,7 +709,7 @@ begin
DBVT_ASCIIZ ,
DBVT_WCHAR ,
DBVT_UTF8 :
- if StrCmp(Proto_GetProtoName(wParam),PluginName)<>0 then exit;
+ if StrCmp(Proto_GetBaseAccountName(wParam),PluginName)<>0 then exit;
else
exit;
end;
diff --git a/plugins/mRadio/i_visual.inc b/plugins/mRadio/i_visual.inc
index e8a319d15c..06dd42aaa1 100644
--- a/plugins/mRadio/i_visual.inc
+++ b/plugins/mRadio/i_visual.inc
@@ -5,7 +5,7 @@ var
function OnContactMenu(hContact:WPARAM;lParam:LPARAM):int;cdecl;
begin
- if StrCmp(Proto_GetProtoName(hContact),PluginName)<>0 then
+ if StrCmp(Proto_GetBaseAccountName(hContact),PluginName)<>0 then
begin
Menu_ShowItem(hCMenuItemRec, 0);
Menu_ShowItem(hCMenuItemPlay, 0);