From 0d4ff7f3dc33a188ab65bfcfac7c1f8a0b13cc70 Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 5 Feb 2009 21:37:30 +0000 Subject: [PATCH] ircdb.py: Use a more concise return statement --- src/ircdb.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ircdb.py b/src/ircdb.py index a5ccd2bd2..9c81b48a3 100644 --- a/src/ircdb.py +++ b/src/ircdb.py @@ -1,5 +1,6 @@ ### # Copyright (c) 2002-2005, Jeremiah Fincher +# Copyright (c) 2009, James Vega # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -1062,10 +1063,7 @@ def checkCapabilities(hostmask, capabilities, requireAll=False): else: if checkCapability(hostmask, capability): return True - if requireAll: - return True - else: - return False + return requireAll ### # supybot.capabilities