resolve MOTD not sent to offline users (when becoming available) bug
darcs-hash:20070927210027-86b55-9fd0d0a01060db0ebd3f77de5893099a5c2a8728.gz
This commit is contained in:
@@ -937,8 +937,7 @@ class JCLCommandManager(CommandManager):
|
||||
motd = session_context["motd"][0]
|
||||
self.component.set_motd(motd)
|
||||
users = account.get_all_users(\
|
||||
filter=AND(Account.q.userID == User.q.id,
|
||||
Account.q._status != account.OFFLINE),
|
||||
filter=AND(Account.q.userID == User.q.id),
|
||||
distinct=True)
|
||||
result = []
|
||||
motd = self.component.get_motd()
|
||||
|
||||
@@ -2536,6 +2536,7 @@ class JCLCommandManager_TestCase(JCLTestCase):
|
||||
jid="account12@jcl.test.com")
|
||||
account12.status = "away"
|
||||
user2 = User(jid="test2@test.com")
|
||||
user2.has_received_motd = True
|
||||
account21 = ExampleAccount(user=user2,
|
||||
name="account21",
|
||||
jid="account21@jcl.test.com")
|
||||
|
||||
Reference in New Issue
Block a user