From 735e234c2c7a984b01295f86045545ed8d9838ce Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 8 May 2013 20:26:45 -0400 Subject: Fixed some issues and desyncs with creating empty permanent channels on startup & dropping empty channels --- include/channels.h | 4 ++++ include/modules.h | 1 + 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index 56d0edd2c..7d1918f08 100644 --- a/include/channels.h +++ b/include/channels.h @@ -100,6 +100,10 @@ class CoreExport Channel : public Base, public Extensible */ void CheckModes(); + /** Check if this channel should be deleted + */ + bool CheckDelete(); + /** Join a user internally to the channel * @param u The user * @return The UserContainer for the user diff --git a/include/modules.h b/include/modules.h index a55a5ff94..5585e9e77 100644 --- a/include/modules.h +++ b/include/modules.h @@ -636,6 +636,7 @@ class CoreExport Module : public Extensible virtual void OnDelChan(ChannelInfo *ci) { } /** Called when a new channel is created + * Note that this channel may not be introduced to the uplink at this point. * @param c The channel */ virtual void OnChannelCreate(Channel *c) { } -- cgit