fix segfault if urlhandler is not defined in golded.cfg

This commit is contained in:
Stas Degteff
2010-03-26 22:17:07 +00:00
parent e2c0c182de
commit 5cde6a3023
3 changed files with 20 additions and 1 deletions

View File

@@ -721,6 +721,13 @@ static bool PeekURLCmp(const std::string &a, const std::string b)
void ReadPeekURLs(GMsg* msg)
{
if( CFG->urlhandler.empty() )
{
w_info(LNG->PeekInfoNoHandler);
waitkeyt(10000);
w_info(NULL);
return;
}
w_info(LNG->Wait);
// Scan the current msg for urls