summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index fc6c90b5d..92ad3b78c 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -455,7 +455,7 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri
{
if (user->chans[index].channel == Ptr)
{
- user->chans[index].channel == NULL;
+ user->chans[index].channel = NULL;
user->chans[index].uc_modes = 0;
}
}