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

polserver / polserver / 21108840797

18 Jan 2026 08:35AM UTC coverage: 60.508% (+0.02%) from 60.492%
21108840797

push

github

web-flow
ClangTidy readability-else-after-return (#857)

* trigger tidy

* Automated clang-tidy change: readability-else-after-return

* compile test

* rerun

* Automated clang-tidy change: readability-else-after-return

* trigger..

* Automated clang-tidy change: readability-else-after-return

* manually removed a few

* Automated clang-tidy change: readability-else-after-return

* removed duplicate code

* fix remaining warnings

* fixed scope

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>

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

46 existing lines in 25 files now uncovered.

44448 of 73458 relevant lines covered (60.51%)

525066.38 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