Node address will be shown on nodelist lookup, if point address is not found

This commit is contained in:
Ianos Gnatiuc 2005-11-24 09:56:26 +00:00
parent d72bcc266b
commit 45cc7cef19
2 changed files with 5 additions and 3 deletions

View File

@ -10,6 +10,8 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/ Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________ ______________________________________________________________________
+ Node address will be shown on nodelist lookup, if point address is not found.
+ ')' and '(' chars can be used for advanced search. + ')' and '(' chars can be used for advanced search.
')' - shortcut for "<>:" (from, to, subject), and ')' - shortcut for "<>:" (from, to, subject), and
'(' - for "#._*@%" (body, tagline, tearline, origin, signature, kludges) '(' - for "#._*@%" (body, tagline, tearline, origin, signature, kludges)

View File

@ -1005,7 +1005,7 @@ void Lookup(GMsg* msg, Addr* addr, char* name, int topline, char* status) {
else else
NLP->find(matchaddr); NLP->find(matchaddr);
found = (NLP->found() && (exactmatch || topline == -100)); found = NLP->found() && exactmatch;
if (found && (topline != -100)) if (found && (topline != -100))
{ {
@ -1013,9 +1013,9 @@ void Lookup(GMsg* msg, Addr* addr, char* name, int topline, char* status) {
if(NLP->next()) if(NLP->next())
if(NLP->found()) if(NLP->found())
found = false; found = false;
NLP->pop_state(); NLP->pop_state();
} }
else if (!found && matchaddr.point && (topline == -100)) else if (!found && matchaddr.point)
{ {
matchaddr.point = 0; matchaddr.point = 0;
NLP->find(matchaddr); NLP->find(matchaddr);