summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index bd6fcbbf0..ffdf55bce 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -629,8 +629,7 @@ void ChannelInfo::ClearLevels()
Anope::string ChannelInfo::GetIdealBan(User *u) const
{
- int bt = this ? this->bantype : -1;
- switch (bt)
+ switch (this->bantype)
{
case 0:
return "*!" + u->GetVIdent() + "@" + u->GetDisplayedHost();