• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

polserver / polserver / 21100551564

17 Jan 2026 08:40PM UTC coverage: 60.504% (+0.01%) from 60.492%
21100551564

Pull #857

github

turleypol
fixed scope
Pull Request #857: ClangTidy readability-else-after-return

837 of 1874 new or added lines in 151 files covered. (44.66%)

48 existing lines in 26 files now uncovered.

44445 of 73458 relevant lines covered (60.5%)

515341.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pol-core/pol/module/uomod3.cpp
1
/** @file
2
 *
3
 * @par History
4
 * - 2005/09/23 Shinigami: added mf_SendStatus - to send full status packet to support extensions
5
 * - 2005/09/30 Shinigami: added Player Check to mf_SendStatus (crashed on NPCs)
6
 */
7

8
#include "../../bscript/berror.h"
9
#include "../mobile/charactr.h"
10
#include "../statmsg.h"
11
#include "uomod.h"
12

13

14
namespace Pol::Module
15
{
16
using namespace Bscript;
17
BObjectImp* UOExecutorModule::mf_SendStatus( /* mob */ )
×
18
{
19
  Mobile::Character* chr;
20
  if ( getCharacterParam( 0, chr ) )
×
21
  {
22
    if ( !chr->has_active_client() )
×
23
      return new BError( "No client attached" );
×
24

25
    if ( chr->logged_in() )
×
26
    {
27
      send_full_statmsg( chr->client, chr );
×
28
      return new BLong( 1 );
×
29
    }
NEW
30
    return new BError( "Mobile must not be offline" );
×
31
  }
NEW
32
  return new BError( "Invalid parameter type" );
×
33
}
34
}  // namespace Pol::Module
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc