Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
Updated Jupiter
RenX_ModSystem: Adjusted for Jupiter
  • Loading branch information
JAJames committed Jan 19, 2017
1 parent b4a92b2 commit 492a879
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
7 changes: 3 additions & 4 deletions Bot/Jupiter_Bot.h
@@ -1,5 +1,5 @@
/**
* Copyright (C) 2013-2016 Jessica James.
* Copyright (C) 2013-2017 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -45,12 +45,11 @@ namespace Jupiter { class Config; }

namespace Jupiter
{

/** Application config file */
extern Jupiter::Config *g_config;
JUPITER_BOT_API extern Jupiter::Config *g_config;

/** Application start time */
extern std::chrono::steady_clock::time_point g_start_time;
JUPITER_BOT_API extern std::chrono::steady_clock::time_point g_start_time;
}

#endif // __cplusplus
Expand Down
6 changes: 3 additions & 3 deletions Bot/Main.cpp
@@ -1,5 +1,5 @@
/**
* Copyright (C) 2013-2016 Jessica James.
* Copyright (C) 2013-2017 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -192,9 +192,9 @@ int main(int argc, const char **args)
printf("Initialization completed in %f milliseconds." ENDL, static_cast<double>(std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now() - Jupiter::g_start_time).count()) / 1000.0 );

if (consoleCommands->size() > 0)
printf("%u Console Commands have been initialized%s" ENDL, consoleCommands->size(), getConsoleCommand("help"_jrs) == nullptr ? "." : "; type \"help\" for more information.");
printf("%zu Console Commands have been initialized%s" ENDL, consoleCommands->size(), getConsoleCommand("help"_jrs) == nullptr ? "." : "; type \"help\" for more information.");
if (IRCMasterCommandList->size() > 0)
printf("%u IRC Commands have been loaded into the master list." ENDL, IRCMasterCommandList->size());
printf("%zu IRC Commands have been loaded into the master list." ENDL, IRCMasterCommandList->size());

while (1)
{
Expand Down
5 changes: 3 additions & 2 deletions Configs/IRC.Core.ini
Expand Up @@ -102,11 +102,12 @@ SASL.Password=your_NickServ_Password

[[Channels]]

[[[#RenX-IRC]]]
; Temporary: all channel names must be lowercase
[[[#renx-irc]]]
AutoJoin=True
Type=1

[[[#RenX-IRC.Admin]]]
[[[#renx-irc.admin]]]
AutoJoin=True
Type=2

Expand Down
6 changes: 3 additions & 3 deletions RenX.ModSystem/RenX_ModSystem.cpp
Expand Up @@ -770,11 +770,11 @@ void DelIRCCommand::trigger(IRC_Bot *source, const Jupiter::ReadableString &chan

while (bucket_itr != bucket_end)
{
for (auto entry_itr = bucket_itr->m_entries.getHead(); entry_itr != nullptr; entry_itr = entry_itr->next)
for (auto entry_itr = bucket_itr->m_entries.begin(); entry_itr != bucket_itr->m_entries.end(); ++entry_itr)
{
if (entry_itr->data->value.get("Name"_jrs).equalsi(parameters))
if (entry_itr->value.get("Name"_jrs).equalsi(parameters))
{
if (pluginInstance.modsFile.remove(entry_itr->data->key))
if (pluginInstance.modsFile.remove(entry_itr->key))
source->sendNotice(nick, "Player has been removed from the moderator list."_jrs);
else
source->sendNotice(nick, "Error: Unknown error occurred."_jrs);
Expand Down

0 comments on commit 492a879

Please sign in to comment.