Browse Source

small, but noticeable bug that caused the root channel to appear in the links. meh.

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
a1e0584597
  1. 2
      pyweb/mumble/mmobjects.py

2
pyweb/mumble/mmobjects.py

@ -136,7 +136,7 @@ class mmChannel( object ):
self.serverId = self.parent.serverId; self.serverId = self.parent.serverId;
def parentChannels( self ): def parentChannels( self ):
if self.parent is None or self.parent.is_server() or self.parent.id == 0:
if self.parent is None or self.parent.is_server() or self.parent.chanid == 0:
return []; return [];
return self.parent.parentChannels() + [self.parent.name]; return self.parent.parentChannels() + [self.parent.name];

Loading…
Cancel
Save