From 998078c9bd1474af5b907687e9382f626bd2b3b3 Mon Sep 17 00:00:00 2001 From: yanmorin <yanmorin> Date: Tue, 4 Oct 2005 20:23:48 +0000 Subject: [PATCH] Remove the call name restriction --- src/gui/server/request.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/server/request.h b/src/gui/server/request.h index 4d2663f407..981838bf0d 100644 --- a/src/gui/server/request.h +++ b/src/gui/server/request.h @@ -69,9 +69,7 @@ public: _account = *iter; _argList.pop_front(); iter = _argList.begin(); - // a call method can only begin by 'c' since it's only the client that - // call with method - if (iter != _argList.end() && (*iter)[0]=='c') { + if (iter != _argList.end()) { _callId = *iter; iter++; // last arg is the destination @@ -100,7 +98,7 @@ public: RequestGlobalCall(const std::string &sequenceId, const TokenList& argList) : Request(sequenceId, argList) { TokenList::iterator iter = _argList.begin(); - if (iter != _argList.end() && ((*iter)[0]=='c' || (*iter)[0]=='s') ) { + if (iter != _argList.end() && iter->length() != 0 ) { _callId = *iter; _argList.pop_front(); } else { -- GitLab