summaryrefslogtreecommitdiff
path: root/zaphistorychannel.c
diff options
context:
space:
mode:
Diffstat (limited to 'zaphistorychannel.c')
-rw-r--r--zaphistorychannel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zaphistorychannel.c b/zaphistorychannel.c
index 1049f7e..dc730a0 100644
--- a/zaphistorychannel.c
+++ b/zaphistorychannel.c
@@ -21,7 +21,12 @@ cZapHistoryChannel::cZapHistoryChannel() {
// Getter/Setter for wrapped cChannel
const cChannel *cZapHistoryChannel::GetChannel() {
+#if APIVERSNUM >= 20301
+ LOCK_CHANNELS_READ;
+ return Channels->GetByChannelID(channelID);
+#else
return Channels.GetByChannelID(channelID);
+#endif
}
tChannelID cZapHistoryChannel::GetChannelID() {