- Wrong doc for Snomask::GetDescription()
- Incorrect idle time when WHOISing remote users
- String + int = garbage
- Remote MODE commands (user mode changes) being broadcast in addition to being forwarded
- Incorrect revision being shown
- extern "C" const char inspircd_src_version[] = VERSION " r" REVISION;
+ extern "C" const char inspircd_src_version[] = VERSION " " REVISION;
#endif
#define COMMAND_INIT(c) MODULE_INIT(CommandModule<c>)
#endif
#define COMMAND_INIT(c) MODULE_INIT(CommandModule<c>)
void Flush();
/** Returns the description of this snomask
void Flush();
/** Returns the description of this snomask
- * @param remote If true the description of the uppercase (remote) variant of this snomask
- * will be returned (i.e.: "REMOTE" will be prepended to the description).
+ * @param letter The letter of this snomask. If uppercase, the description of the remote
+ * variant of this snomask will be returned (i.e.: "REMOTE" will be prepended to the description).
* @return The description of this snomask
*/
std::string GetDescription(char letter) const;
* @return The description of this snomask
*/
std::string GetDescription(char letter) const;
*/
CmdResult CommandMode::Handle (const std::vector<std::string>& parameters, User *user)
{
*/
CmdResult CommandMode::Handle (const std::vector<std::string>& parameters, User *user)
{
- ServerInstance->Modes->Process(parameters, user);
+ ServerInstance->Modes->Process(parameters, user, (IS_LOCAL(user) ? ModeParser::MODE_NONE : ModeParser::MODE_LOCALONLY));
if (!user)
return CMD_FAILURE;
if (!user)
return CMD_FAILURE;
- unsigned long idle = ConvToInt(parameters[1]);
+ unsigned long idle = ConvToInt(parameters.back());
DoWhois(user, target, target->signon, idle);
return CMD_SUCCESS;
DoWhois(user, target, target->signon, idle);
return CMD_SUCCESS;
- std::cout << std::endl << VERSION << " r" << REVISION << std::endl;
+ std::cout << std::endl << VERSION << " " << REVISION << std::endl;
Exit(EXIT_STATUS_NOERROR);
}
Exit(EXIT_STATUS_NOERROR);
}
{
std::vector<std::string> modes;
modes.push_back(c->name);
{
std::vector<std::string> modes;
modes.push_back(c->name);
- modes.push_back("-" + permchannelmode->GetModeChar());
+ modes.push_back(std::string("-") + permchannelmode->GetModeChar());
ServerInstance->Modes->Process(modes, ServerInstance->FakeClient);
}
ServerInstance->Modes->Process(modes, ServerInstance->FakeClient);
}
// they're already in the channel
std::vector<std::string> modes;
modes.push_back(parameters[0]);
// they're already in the channel
std::vector<std::string> modes;
modes.push_back(parameters[0]);
- modes.push_back("+" + npmh->GetModeChar());
+ modes.push_back(std::string("+") + npmh->GetModeChar());
if (op)
{
modes[1].push_back('o');
if (op)
{
modes[1].push_back('o');
// Possible case when our clock ticked backwards
idle = 0;
else
// Possible case when our clock ticked backwards
idle = 0;
else
- idle = ((unsigned int) (localtarget->idle_lastmsg - ServerInstance->Time()));
+ idle = ((unsigned int) (ServerInstance->Time() - localtarget->idle_lastmsg));
parameterlist reply;
reply.push_back(prefix);
parameterlist reply;
reply.push_back(prefix);
\r
#define BRANCH "@MAJOR_VERSION@.@MINOR_VERSION@"\r
#define VERSION "@FULL_VERSION@"\r
\r
#define BRANCH "@MAJOR_VERSION@.@MINOR_VERSION@"\r
#define VERSION "@FULL_VERSION@"\r
+#define REVISION "release"\r
#define SYSTEM "@CMAKE_SYSTEM@"\r
\r
#define CONFIG_PATH "@CONF_PATH@"\r
#define SYSTEM "@CMAKE_SYSTEM@"\r
\r
#define CONFIG_PATH "@CONF_PATH@"\r