[SM-Commit] GIT changes to master sorcery by Jaka Kranjc (c78008608262d0d2dc3380b1e27390eb46b856f8)

Jaka Kranjc scm at sourcemage.org
Sat Jul 25 03:39:16 EDT 2009


GIT changes to master sorcery by Jaka Kranjc <lynxlynxlynx at sourcemage.org>:

 ChangeLog                          |    4 ++++
 var/lib/sorcery/modules/libdepends |    3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit c78008608262d0d2dc3380b1e27390eb46b856f8
Author: Jaka Kranjc <lynxlynxlynx at sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx at sourcemage.org>

    libdepends: made up_trigger explicitly default to the cast_self
             action, so a proper message is displayed

diff --git a/ChangeLog b/ChangeLog
index 3a44456..67322bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-25 Jaka Kranjc <lynxlynxlynx at sourcemage.org>
+	* libdepends: made up_trigger explicitly default to the cast_self
+	  action, so a proper message is displayed
+
 2009-07-19 Jaka Kranjc <lynxlynxlynx at sourcemage.org>
 	* config: made BUILD_DIRECTORY ignore INSTALL_ROOT and user changeable,
 	  modified patch by eekee #15234
diff --git a/var/lib/sorcery/modules/libdepends b/var/lib/sorcery/modules/libdepends
index 6fe9b88..416e143 100755
--- a/var/lib/sorcery/modules/libdepends
+++ b/var/lib/sorcery/modules/libdepends
@@ -1368,9 +1368,10 @@ function select_provider()
 ## shorthand for putting a TRIGGERS file in the target spell.
 #---------------------------------------------------------------------
 function real_up_trigger() {
+  local action=${2:-cast_self}
   message  "${SPELL_COLOR}${SPELL}${DEFAULT_COLOR}" \
            "${CHECK_COLOR}triggers a${DEFAULT_COLOR}" \
-           "${SPELL_COLOR}${2}${DEFAULT_COLOR}" \
+           "${SPELL_COLOR}${action}${DEFAULT_COLOR}" \
            "${CHECK_COLOR}on${DEFAULT_COLOR}" \
            "${SPELL_COLOR}${1}${DEFAULT_COLOR}"
   private_up_trigger $SPELL "$1" "$2"



More information about the SM-Commit mailing list