X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_permchannels.cpp;h=95f01839ee8ccb7385f8a885129f594ac35f5124;hb=7ef2f87e39bd22c7914caf7f2afbb1a3bf8fbd43;hp=7e28c5fc65081dbbff95af4ba0455cec8f58a38d;hpb=dec17a2e32573a32751c975b5b55217442cd3185;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 7e28c5fc6..95f01839e 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -206,7 +206,7 @@ public: time_t TS = tag->getInt("ts", ServerInstance->Time(), 1); c = new Channel(channel, TS); - unsigned int topicset = tag->getInt("topicts"); + unsigned int topicset = tag->getInt("topicts", 0); std::string topic = tag->getString("topic"); if ((topicset != 0) || (!topic.empty()))