diff options
-rw-r--r-- | protocols/EmLanProto/src/amdproto.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/protocols/EmLanProto/src/amdproto.cpp b/protocols/EmLanProto/src/amdproto.cpp index fb894e8987..63eca6d7dc 100644 --- a/protocols/EmLanProto/src/amdproto.cpp +++ b/protocols/EmLanProto/src/amdproto.cpp @@ -60,23 +60,22 @@ BOOL APIENTRY DllMain(HINSTANCE hInstDLL, DWORD reason, LPVOID) static INT_PTR __cdecl EMPGetCaps(WPARAM wParam,LPARAM )
{
- int res = 0;
switch(wParam) {
case PFLAGNUM_1:
- res = PF1_IM|PF1_BASICSEARCH|PF1_ADDSEARCHRES|PF1_PEER2PEER|PF1_INDIVSTATUS|
+ return PF1_IM|PF1_BASICSEARCH|PF1_ADDSEARCHRES|PF1_PEER2PEER|PF1_INDIVSTATUS|
PF1_URL|PF1_MODEMSG|PF1_FILE|PF1_CANRENAMEFILE|PF1_FILERESUME;
- break;
case PFLAGNUM_2:
- res = PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | PF2_FREECHAT;
- break;
+ return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | PF2_FREECHAT;
case PFLAGNUM_3:
- res = PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | PF2_FREECHAT;
- break;
+ return PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | PF2_FREECHAT;
case PFLAG_UNIQUEIDTEXT:
- res = (INT_PTR)Translate("User name or '*'");
- break;
+ return (INT_PTR)Translate("User name or '*'");
+ case PFLAG_UNIQUEIDSETTING:
+ return (INT_PTR)"Nick";
+ case PFLAG_MAXLENOFMESSAGE: //FIXME
+ default:
+ return 0;
}
- return res;
}
static INT_PTR __cdecl EMPGetName(WPARAM wParam,LPARAM lParam)
|