1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Clean up log messages everywhere

This commit is contained in:
Perttu Ahola 2012-03-11 04:15:45 +02:00
parent 6ec447a1aa
commit f1d9880006
17 changed files with 247 additions and 248 deletions

View file

@ -40,6 +40,23 @@ class IWritableItemDefManager;
class IWritableNodeDefManager;
class IWritableCraftDefManager;
class ServerError : public std::exception
{
public:
ServerError(const std::string &s)
{
m_s = "ServerError: ";
m_s += s;
}
virtual ~ServerError() throw()
{}
virtual const char * what() const throw()
{
return m_s.c_str();
}
std::string m_s;
};
/*
Some random functions
*/
@ -211,8 +228,6 @@ struct PlayerInfo
void PrintLine(std::ostream *s);
};
u32 PIChecksum(core::list<PlayerInfo> &l);
/*
Used for queueing and sorting block transfers in containers
@ -608,7 +623,7 @@ private:
{
Player *player = m_env->getPlayer(peer_id);
if(player == NULL)
return "[id="+itos(peer_id);
return "[id="+itos(peer_id)+"]";
return player->getName();
}