public override void Hook_Channel(Channel channel) { if (channel.RetrieveObject("rss") == null) { channel.RegisterObject(new Feed(channel), "rss"); } }
public override void Hook_Channel(Channel channel) { if (channel.RetrieveObject("Statistics") == null) { channel.RegisterObject(new Statistics(channel), NAME); } }
public override void Hook_Channel(Channel channel) { Syslog.Log("Loading " + channel.Name); if (channel == null) { Syslog.Log("NULL"); } if (Snapshots) { try { if (Directory.Exists(SnapshotsDirectory + Path.DirectorySeparatorChar + channel.Name) == false) { Syslog.Log("Creating directory for infobot for " + channel.Name); Directory.CreateDirectory(SnapshotsDirectory + Path.DirectorySeparatorChar + channel.Name); } } catch (Exception fail) { Core.HandleException(fail, "infobot"); } } if (channel.RetrieveObject("Infobot") == null) { // sensitivity bool cs = Module.GetConfig(channel, "Infobot.Case", true); channel.RegisterObject(new Infobot(getDB(ref channel), channel, this, cs), "Infobot"); } }
public override void Hook_Channel(Channel channel) { if (channel.RetrieveObject("RC") == null) { channel.RegisterObject(new RecentChanges(channel), "RC"); } }