Browse Source

friends are broken. This should fix it, but doesn't for some reason I can't work out :-(

import/heads/master
Cian Brennan 11 years ago
parent
commit
2792676e7c
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      rbusers.py

+ 2
- 5
rbusers.py View File

@@ -37,11 +37,6 @@ else :
try :
friends_file = open( os.path.expanduser('~/.friends'), 'r')
friends = [ i.rstrip() for i in friends_file.readlines() ]
for friend in friends :
try :
logged_users[friend][1] = white_text_escape
except KeyError :
pass
except IOError :
pass

@@ -55,6 +50,8 @@ for user in users :
group = pwd.getpwnam(n)[3]
logged_users[n] = [ 1, ]
logged_users[n].append( groups.get( group, default_colour ) )
if user in friends and group is not 100 :
logged_users[n][1] = white_text_escape
except KeyError:
pass



Loading…
Cancel
Save