update issues_change_detector from pbot-ng, change unknown ip6 2001:ba8:1f1:f216::5 to ::1, ignore bot_settings.sh, fix description on hack_of_all_hacks

This commit is contained in:
Márcio Silva 2017-06-03 07:35:15 -03:00
parent ae928016bf
commit 7eb1df0ef4
5 changed files with 33 additions and 28 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
announcements/people/*
bot_settings.sh
logs

View File

@ -289,7 +289,7 @@ function l33t_codes
"${my_own_name}: tell "+([![:space:]])":"+([[:space:]])+([![:space:]])* )
# The line will be something such as:
# hyperbot: tell user: you suck
# hyperbot: tell user: hi
process="${sentence##${my_own_name}: tell }"
subject="${process%%:*}"
message="${process#*:}"

View File

@ -14,8 +14,8 @@ shopt -s extglob
next_line_is_url=0
inotifywait -m --format '%w%f' -e create "${maildir}" 2>/dev/null |
while read email
do
while read email
do
while read line
do
case "${line}" in
@ -31,7 +31,7 @@ do
echo -n " (${line#'Bug #'+([[:digit:]])': '})"
next_line_is_url=1
;;
'https://issues.hyperbola.info/issues/'* )
'https://labs.parabola.nu/issues/'* )
(( next_line_is_url )) &&
echo -n " ${line}"
break
@ -40,4 +40,8 @@ do
done < "${email}"
echo
done >> "${bot_ipc}"
done |
while read message
do
echo "${message}" >> "${bot_ipc}"
done

View File

@ -88,7 +88,7 @@ transport_read_line() {
[[ -w /tmp/un-provoked-message-store ]] && (( ${ze_length%% *} ))
then
read -r line < /tmp/un-provoked-message-store
line=':tlCJ99mfZl!~user@2001:ba8:1f1:f216::5 PRIVMSG #hyperbola :'"${line}"
line=':tlCJ99mfZl!~user@::1 PRIVMSG #hyperbola :'"${line}"
# remove the top line of the file
if (( ${ze_length%% *} < 2 ))

View File

@ -173,7 +173,7 @@ transport_read_line() {
[[ -w /tmp/un-provoked-message-store ]] && (( ${ze_length%% *} ))
then
read -r line < /tmp/un-provoked-message-store
line=':tlCJ99mfZl!~user@2001:ba8:1f1:f216::5 PRIVMSG #hyperbola :'"${line}"
line=':tlCJ99mfZl!~user@::1 PRIVMSG #hyperbola :'"${line}"
if (( ${ze_length%% *} < 2 ))
then