changeset 1309:6f2b46da0934

Added event hooks for ress/rais module for accepted / removed events.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 05 Feb 2011 18:04:20 +0200
parents 7249a3babbb3
children 365229e92169
files gm-rais.tf
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gm-rais.tf	Mon Jan 31 03:56:03 2011 +0200
+++ b/gm-rais.tf	Sat Feb 05 18:04:20 2011 +0200
@@ -24,12 +24,16 @@
 ;; Helper functions and initialization
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 /set lst_accepted=
+/set event_rais_added=
+/set event_rais_removed=
+
 
 /def -i gacpt_list_add =\
 	/gacpt_list_rm_do $[prconvto({1})] %{lst_accepted}%;\
 	/msq @{BCyellow}%{1}@{n} accepted @{BCgreen}%{2}@{n}!%;\
 	/if (opt_acptbell=~"on") /echo -p @{b}%;/endif%;\
-	/set lst_accepted=$[prconvto({1})] $[prconvto({2})] $[time()] %{lst_accepted}
+	/set lst_accepted=$[prconvto({1})] $[prconvto({2})] $[time()] %{lst_accepted}%;\
+	/prexecfuncs %{event_rais_added}
 
 /def -i gacpt_list_rm_do =\
 	/let _atmp=%{1}%;/shift%;\
@@ -43,7 +47,8 @@
 
 /def -i gacpt_list_rm =\
 	/msq Removing @{BCyellow}%{1}@{n} from list ...%;\
-	/gacpt_list_rm_do $[prconvto({1})] %{lst_accepted}
+	/gacpt_list_rm_do $[prconvto({1})] %{lst_accepted}%;\
+	/prexecfuncs %{event_rais_removed}
 
 
 /def -i gacpt_list_get =\