added license
This commit is contained in:
parent
2a97cd761e
commit
7ffe45c711
|
@ -0,0 +1,17 @@
|
|||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
This permission notice shall be included in all copies or substantial portions
|
||||
of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
18
README
18
README
|
@ -38,18 +38,12 @@ if __name__ == '__main__':
|
|||
License
|
||||
-------
|
||||
|
||||
This software is dedicated to the public domain. See
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ for details.
|
||||
MIT License
|
||||
|
||||
see LICENSE.txt for details
|
||||
|
||||
|
||||
Todo
|
||||
----
|
||||
Business
|
||||
--------
|
||||
|
||||
- Remove unecessary python libraries from windows build
|
||||
- Debug levels
|
||||
|
||||
|
||||
Credit
|
||||
------
|
||||
|
||||
Frank DeMarco <if.self.end@a-o.in>
|
||||
420@shampoo.ooo
|
||||
|
|
|
@ -52,10 +52,8 @@ class Animation(GameChild):
|
|||
|
||||
def is_playing(self, method=None, check_all=False, include_delay=False):
|
||||
if check_all:
|
||||
return any(self.is_account_playing(account, include_delay) for \
|
||||
method, account in self.accounts.items())
|
||||
return self.is_account_playing(self.accounts[self.get_default(method)],
|
||||
include_delay)
|
||||
return any(self.is_account_playing(account, include_delay) for method, account in self.accounts.items())
|
||||
return self.is_account_playing(self.accounts[self.get_default(method)], include_delay)
|
||||
|
||||
def is_account_playing(self, account, include_delay):
|
||||
return account.playing and (include_delay or not account.delay)
|
||||
|
|
Loading…
Reference in New Issue