sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 7834] Checking status of a provider with spell_ok
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 7834] Checking status of a provider with spell_ok
- Date: Thu, 16 Dec 2004 22:59:18 -0800 (PST)
http://bugs.sourcemage.org/show_bug.cgi?id=7834
acedit AT armory.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |enhancement
Version|Untargetted future release |1.12.x
------- Additional Comments From acedit AT armory.com 2004-12-16 22:59 -------
Seems like a useful feature, probably not too difficult to write either...
Although I'd rather have it called provider_okay, since there is a very big
distinction between spells and providers (and its relatively expensive to tell
the difference...)
Try this on for size:
function provider_okay() {
for spell in $(search_depends_status_exact $DEPENDS_STATUS '.*' ".*($1)"
'on'
'.*' '.*' |cut -f2 -d:|cut -f1 -d\(|sort|uniq|grep -v "\<none\>"); do
spell_ok $spell && return 0
done
return 1
}
Im sure the cuts can be optimized away..
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
-
[SM-Sorcery-Bugs] [Bug 7834] Checking status of a provider with spell_ok,
bugzilla-daemon, 12/17/2004
- <Possible follow-up(s)>
- [SM-Sorcery-Bugs] [Bug 7834] Checking status of a provider with spell_ok, bugzilla-daemon, 12/17/2004
Archive powered by MHonArc 2.6.24.