summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index ac7be382c..501dd7146 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -714,7 +714,9 @@ void Channel::SetModesInternal(MessageSource &source, const Anope::string &mode,
++this->server_modecount;
}
- if (ts > this->creation_time)
+ if (!ts)
+ ;
+ else if (ts > this->creation_time)
return;
else if (ts < this->creation_time)
{