fixed P10_Channel.class.php checkChannel()
[PHP-P10.git] / Uplink / P10_Channel.class.php
index bc8c152f690d086ca9dd36c634643296d14655d8..e373d55c75b3988acaa90f530b37a3d3ac02c825 100644 (file)
@@ -114,7 +114,7 @@ class P10_Channel {
        
        private function checkChannel() {
                if(count($this->users) == 0 && !$this->modes->hasMode('z')) {
-                       unset(self::$static_channels[strtolower($name)]); //drop empty channel
+                       unset(self::$static_channels[strtolower($this->name)]); //drop empty channel
                }
        }