Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix erroneous date calls. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 39f3e9867142bf3d1e4b57bfa98903cbe12aee97
parent 8d7d7418375dc75adbe6ebb9a674a926acfc8039
Author: Annna Robert-Houdin <[email protected]>
Date: Sun, 18 Aug 2024 22:35:17 +0200
Fix erroneous date calls.
Thanks pazz0.
Diffstat:
M annna-channel-message | 2 +-
M annna-message-common | 2 +-
M annna-say | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/annna-channel-message b/annna-channel-message
@@ -23,7 +23,7 @@ case "${channel}" in
;;
\#bitreich-idle)
# This one runs its own daemon, so we have to give it a raw message.
- printf "$(date +s) <%s> %s\n" >> "${serverbase}/${channel}/out"
+ printf "$(date +%s) <%s> %s\n" >> "${serverbase}/${channel}/out"
;;
*)
annna-message-common "${server}" "${channel}" "${user}" "${text}"
diff --git a/annna-message-common b/annna-message-common
@@ -54,7 +54,7 @@ case "${text}" in
annna-say -s "${server}" -c "${channel}" "${user}, sorry, goph…
else
query=${text#**::} query=${query%%::*}
- if [ -n "${user}" ] && [ "${user}" != "sannna-cmd" ];
+ if [ -n "${user}" ] && [ "${user}" != "annna-cmd" ];
then
annna-say -s "${server}" -c "${channel}" "${user}, $(s…
else
diff --git a/annna-say b/annna-say
@@ -68,7 +68,7 @@ do
printf "%s\n" "$@" | fold -w 250 -s > "${ircpath}/${ou…
;;
"out")
- printf "%s <%s> %s\n" "$(date +s)" "annna-cmd" "$@" \
+ printf "%s <%s> %s\n" "$(date +%s)" "annna-cmd" "$@" \
> "${ircpath}/${outfile}"
;;
esac
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.