summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-20 01:05:16 -0500
committerAdam <Adam@anope.org>2011-02-20 01:05:16 -0500
commitc83b2b73d7c5f264dedb67b878d116b5b10a4742 (patch)
tree407251a2bb3bf738194b6ec7654b0872b6bab1d5 /include
parentdfbb5264fac5b418da536cc968aed4bf5cde8b76 (diff)
Much more work on the live SQL. Should work pretty decently now under heavy load.
Diffstat (limited to 'include')
-rw-r--r--include/CMakeLists.txt5
-rw-r--r--include/bots.h2
-rw-r--r--include/commands.h6
-rw-r--r--include/modules.h7
4 files changed, 15 insertions, 5 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index 8b292aea2..a2f8c42d7 100644
--- a/include/CMakeLists.txt
+++ b/include/CMakeLists.txt
@@ -19,6 +19,8 @@ endif(NOT WIN32)
set(PCH_SOURCES_GCH "")
if(CMAKE_COMPILER_IS_GNUCXX)
string(REPLACE " " ";" PCH_CXXFLAGS ${CXXFLAGS})
+ file(GLOB INCLUDE_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h")
+ remove_item_from_list(INCLUDE_SRCS "version.h")
set(PCH_SOURCES "module.h;modules.h;services.h")
foreach(PCH_SOURCE ${PCH_SOURCES})
@@ -32,7 +34,8 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set(PCH_SOURCES_GCH "${PCH_SOURCES_GCH};${CMAKE_CURRENT_BINARY_DIR}/${PCH_SOURCE}.gch")
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${PCH_SOURCE}.gch
- COMMAND ${CMAKE_CXX_COMPILER} ARGS ${PCH_CXXFLAGS} ${PCH_EXTRAFLAGS} -I${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${PCH_SOURCE} -o ${CMAKE_CURRENT_BINARY_DIR}/${PCH_SOURCE}.gch VERBATIM
+ COMMAND ${CMAKE_CXX_COMPILER} ARGS ${PCH_CXXFLAGS} ${PCH_EXTRAFLAGS} -I${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${PCH_SOURCE} -o ${CMAKE_CURRENT_BINARY_DIR}/${PCH_SOURCE}.gch
+ DEPENDS ${INCLUDE_SRCS} VERBATIM
)
endforeach(PCH_SOURCE ${PCH_SOURCES})
endif(CMAKE_COMPILER_IS_GNUCXX)
diff --git a/include/bots.h b/include/bots.h
index 84c4fa2ec..7cdf417f1 100644
--- a/include/bots.h
+++ b/include/bots.h
@@ -51,6 +51,8 @@ class CoreExport BotInfo : public User, public Flags<BotFlag, BI_END>
*/
virtual ~BotInfo();
+ void SetIdent(const Anope::string &sident);
+
/** Change the nickname for the bot.
* @param newnick The nick to change to
*/
diff --git a/include/commands.h b/include/commands.h
index a2d6643fe..8320c531a 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -69,15 +69,15 @@ struct CoreExport CommandSource
std::list<Anope::string> reply;
- ~CommandSource();
-
void Reply(const char *message, ...);
void Reply(const Anope::string &message);
+
+ void DoReply();
};
/** Every services command is a class, inheriting from Command.
*/
-class CoreExport Command : public Flags<CommandFlag>
+class CoreExport Command : public Flags<CommandFlag>, public Base
{
Anope::string desc;
diff --git a/include/modules.h b/include/modules.h
index 4532549f1..c407e2c21 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1066,6 +1066,11 @@ class CoreExport Module : public Extensible
* @return MOD_STOP to stop processing completely
*/
virtual EventReturn OnPrivmsg(User *u, ChannelInfo *ci, Anope::string &msg, bool &Allow) { return EVENT_CONTINUE; }
+
+ /** Called when any object is destroyed
+ * @param b The object
+ */
+ virtual void OnObjectDestroy(Base *b) { }
};
/** Implementation-specific flags which may be set in ModuleManager::Attach()
@@ -1118,7 +1123,7 @@ enum Implementation
I_OnServerQuit, I_OnTopicUpdated,
I_OnEncrypt, I_OnEncryptCheckLen, I_OnDecrypt, I_OnCheckPassword,
I_OnChannelModeSet, I_OnChannelModeUnset, I_OnUserModeSet, I_OnUserModeUnset, I_OnChannelModeAdd, I_OnUserModeAdd,
- I_OnMLock, I_OnUnMLock, I_OnServerSync, I_OnUplinkSync, I_OnBotPrivmsg, I_OnPrivmsg,
+ I_OnMLock, I_OnUnMLock, I_OnServerSync, I_OnUplinkSync, I_OnBotPrivmsg, I_OnPrivmsg, I_OnObjectDestroy,
I_END
};