diff options
| author | Adam <Adam@anope.org> | 2012-04-25 14:29:50 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-04-25 14:29:50 -0400 |
| commit | 1081ecdae80d10bcac0f8543d665c5579f271e61 (patch) | |
| tree | 7b2665bc103c7306b2ec08afc46bac5e7689eb38 /src/regchannel.cpp | |
| parent | 2370c16f1e9d395e47fc8963b1c301dff160c547 (diff) | |
Fixed non-debug build
Diffstat (limited to 'src/regchannel.cpp')
| -rw-r--r-- | src/regchannel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 2ee66805a..b113dfb2e 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -51,7 +51,7 @@ Serializable* BadWord::unserialize(Serializable *obj, Serialize::Data &data) BadWord *bw; if (obj) { - bw = debug_cast<BadWord *>(obj); + bw = anope_dynamic_static_cast<BadWord *>(obj); data["word"] >> bw->word; bw->type = static_cast<BadWordType>(n); } @@ -98,7 +98,7 @@ Serializable* AutoKick::unserialize(Serializable *obj, Serialize::Data &data) NickCore *nc = findcore(data["nc"].astr()); if (obj) { - ak = debug_cast<AutoKick *>(obj); + ak = anope_dynamic_static_cast<AutoKick *>(obj); data["creator"] >> ak->creator; data["reason"] >> ak->reason; ak->nc = findcore(data["nc"].astr()); @@ -167,7 +167,7 @@ Serializable* ModeLock::unserialize(Serializable *obj, Serialize::Data &data) ModeLock *ml; if (obj) { - ml = debug_cast<ModeLock *>(obj); + ml = anope_dynamic_static_cast<ModeLock *>(obj); data["set"] >> ml->set; ml->name = name; @@ -224,7 +224,7 @@ Serializable* LogSetting::unserialize(Serializable *obj, Serialize::Data &data) LogSetting *ls; if (obj) - ls = debug_cast<LogSetting *>(obj); + ls = anope_dynamic_static_cast<LogSetting *>(obj); else { ls = new LogSetting(); @@ -433,7 +433,7 @@ Serializable* ChannelInfo::unserialize(Serializable *obj, Serialize::Data &data) { ChannelInfo *ci; if (obj) - ci = debug_cast<ChannelInfo *>(obj); + ci = anope_dynamic_static_cast<ChannelInfo *>(obj); else ci = new ChannelInfo(data["name"].astr()); |
