瀏覽代碼

Use common hook mechanism for logging and status change announcing

Alois Mahdal 9 年之前
父節點
當前提交
0820809492
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      src/libexec/saturnin-iam

+ 3
- 1
src/libexec/saturnin-iam 查看文件

@@ -6,6 +6,7 @@ ffoo import inigrep
6 6
 ffoo import pretty
7 7
 ffoo import sync
8 8
 
9
+ffoo import saturnin_common
9 10
 ffoo import saturnin_zleep
10 11
 
11 12
 
@@ -52,7 +53,8 @@ set_status() {
52 53
     # set public status $1 by command in conf file
53 54
     #
54 55
     local what=$1
55
-    inigrep -p iam.saying.like.this.$what | bash
56
+    saturnin_runhook say_$what
57
+    saturnin_runhook log_$what
56 58
 }
57 59
 
58 60