diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/regchannel.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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<int16_t>(tok); + } + catch (const ConvertException &) { } + + } data["capsmin"] >> ci->capsmin; data["capspercent"] >> ci->capspercent; data["floodlines"] >> ci->floodlines; |