From 100be87f7f95d717ff075a0a77f9d2bae59b5587 Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Wed, 13 Jul 2011 00:38:32 -0700 Subject: [PATCH] Bug fix: herpity derp. Problem with userlist sorting --- memos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memos.py b/memos.py index 84ab54e..8a919b0 100644 --- a/memos.py +++ b/memos.py @@ -639,7 +639,7 @@ class PesterMemo(PesterConvo): while listing is not None: users.append(self.userlist.takeItem(0)) listing = self.userlist.item(0) - users.sort(key=lambda x: ((0 if x.founder else (1 if x.op else (2 if x.halfop else (3 if x.admin else (4 if x.voice else 4))))), x.text())) + users.sort(key=lambda x: ((0 if x.founder else (1 if x.op else (2 if x.halfop else (3 if x.admin else (4 if x.voice else 5))))), x.text())) for u in users: self.userlist.addItem(u)