Mercurial > hg > egg-tcls
comparison config.urllog.example @ 594:a488be0f45e0
urllog: More cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 28 Jan 2021 12:47:20 +0200 |
parents | 3bd5a5e072ad |
children | 577763cb8864 |
comparison
equal
deleted
inserted
replaced
593:3bd5a5e072ad | 594:a488be0f45e0 |
---|---|
5 ########################################################################## | 5 ########################################################################## |
6 | 6 |
7 ### | 7 ### |
8 ### Bind commands | 8 ### Bind commands |
9 ### | 9 ### |
10 bind pub - !urlfind urllog_cmd_pub_find | 10 bind pub - !urlfind urllog_cmd_pub_search |
11 bind msg - !urlfind urllog_cmd_msg_find | 11 bind msg - !urlfind urllog_cmd_msg_search |
12 bind pubm - *.* urllog_check_line | 12 bind pubm - *.* urllog_check_line |
13 bind topc - *.* urllog_check_line | 13 bind topc - *.* urllog_check_line |
14 | 14 |
15 | 15 |
16 # Name of the command used for help texts | 16 # Name of the command used for help texts |
90 # script uses. | 90 # script uses. |
91 # | 91 # |
92 | 92 |
93 # 1 = Enable showing of ShortURLs | 93 # 1 = Enable showing of ShortURLs |
94 # 0 = ShortURLs not shown in any bot actions | 94 # 0 = ShortURLs not shown in any bot actions |
95 set urllog_shorturl 1 | 95 set urllog_shorturl_enable 1 |
96 | 96 |
97 | 97 |
98 # Web server URL that handles redirects of ShortURLs | 98 # Web server URL that handles redirects of ShortURLs |
99 set urllog_shorturl_prefix "https://tnsp.org/u/" | 99 set urllog_shorturl_prefix "https://tnsp.org/u/" |
100 | 100 |
120 | 120 |
121 | 121 |
122 ### | 122 ### |
123 ### Message related settings | 123 ### Message related settings |
124 ### | 124 ### |
125 # Max length of original URL to be shown, rest is chopped | 125 # Max length of original URL to be shown when adding |
126 # off if the URL is longer than the specified amount. | 126 set urllog_add_url_max 100 |
127 set urllog_shorturl_max_orig 35 | 127 |
128 # Max length of title to be shown when adding | |
129 set urllog_add_title_max 100 | |
130 | |
131 # Max length of original URL to be shown on search | |
132 # results IF ShortURLs are enabled and is available. | |
133 # If ShortURLs are NOT enabled, full URL is used! | |
134 set urllog_search_url_max 50 | |
128 | 135 |
129 # Max length of title to be shown on search results | 136 # Max length of title to be shown on search results |
130 set urllog_title_max 35 | 137 set urllog_search_title_max 50 |
131 | 138 |
132 | 139 |
133 # Message texts (informal, errors, etc.) | 140 # Message texts (informal, errors, etc.) |
134 array set urllog_messages { | 141 array set urllog_messages { |
135 "err_http_fail" "nyt meni vituix: @3@" | 142 "err_http_fail" "nyt meni vituix: @3@" |
157 | 164 |
158 "url_known_short" "wanha!" | 165 "url_known_short" "wanha!" |
159 "url_known_long" "wanha!" | 166 "url_known_long" "wanha!" |
160 | 167 |
161 | 168 |
162 "search_result_title" "'@2@' " | 169 "search_result_has_title" "'@2@' " |
163 "search_result_no_title" "" | 170 "search_result_no_title" "" |
164 | 171 |
165 "search_result_short" "#@1@: @4@@5@ @6@ (@2@ @ @3@)" | 172 "search_result_short" "#@1@: @4@@5@ @6@ (@2@ @ @3@)" |
166 "search_result_long" "#@1@: @4@@5@ (@2@ @ @3@)" | 173 "search_result_long" "#@1@: @4@@5@ (@2@ @ @3@)" |
167 | 174 |