From 111d6a917806fd3ce2269436d08d68bd7eb1d5ea Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 30 Mar 2013 22:40:20 -0500 Subject: [PATCH] Fix loading ttb from databases --- src/regchannel.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/regchannel.cpp b/src/regchannel.cpp index bc7505761..a35fa5d4d 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -480,6 +480,18 @@ Serializable* ChannelInfo::Unserialize(Serializable *obj, Serialize::Data &data) if (ci->bi) ci->bi->Assign(NULL, ci); } + { + Anope::string ttb, tok; + data["ttb"] >> ttb; + spacesepstream sep(ttb); + for (int i = 0; sep.GetToken(tok) && i < TTB_SIZE; ++i) + try + { + ci->ttb[i] = convertTo(tok); + } + catch (const ConvertException &) { } + + } data["capsmin"] >> ci->capsmin; data["capspercent"] >> ci->capspercent; data["floodlines"] >> ci->floodlines;