Browse Source

add all channel filter

Joyit 1 tháng trước cách đây
mục cha
commit
a817e5d80d
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      filter.go

+ 7 - 0
filter.go

@@ -5,6 +5,13 @@ import (
 	"strings"
 )
 
+// 匹配所有的频道
+func AllChannelFilter() FilterFunc {
+	return func(conn *Line) (ok bool) {
+		return true
+	}
+}
+
 // 正则频道过滤器
 func RegChannelFilter(channel *regexp.Regexp) FilterFunc {
 	return func(conn *Line) (ok bool) {