_is_function process_inline is always true

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2019-05-28 21:28:58 +02:00
parent afc669c915
commit 6651cf4f0a
2 changed files with 6 additions and 8 deletions

View File

@ -11,7 +11,7 @@
# This file is public domain in the USA and all free countries. # This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
# #
#### $$VERSION$$ v0.90-dev2-13-gcb3f3e3 #### $$VERSION$$ v0.90-dev2-14-gafc669c
# #
# Exit Codes: # Exit Codes:
# - 0 sucess (hopefully) # - 0 sucess (hopefully)
@ -349,7 +349,7 @@ process_client() {
process_message "${num}" "${debug}" process_message "${num}" "${debug}"
else else
[[ "${debug}" = *"debug"* ]] && cat <<< "$UPDATE" >>"INLINE.log" [[ "${debug}" = *"debug"* ]] && cat <<< "$UPDATE" >>"INLINE.log"
[ "$INLINE" != "0" ] && _exec_if_function process_inline "${num}" "${debug}" process_inline "${num}" "${debug}"
fi fi
##### #####
# process inline and message events # process inline and message events
@ -361,7 +361,7 @@ process_client() {
if [ "${iQUERY[ID]}" = "" ]; then if [ "${iQUERY[ID]}" = "" ]; then
event_message "${debug}" event_message "${debug}"
else else
_is_function process_inline && event_inline "${debug}" event_inline "${debug}"
fi fi
# last count users # last count users

View File

@ -5,7 +5,7 @@
# This file is public domain in the USA and all free countries. # This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
# #
#### $$VERSION$$ v0.90-dev2-6-g3c6b2d3 #### $$VERSION$$ v0.90-dev2-14-gafc669c
# #
# adjust your language setting here, e.g.when run from other user or cron. # adjust your language setting here, e.g.when run from other user or cron.
@ -59,10 +59,8 @@ if [ "${1}" != "source" ];then
# detect inline commands.... # detect inline commands....
# no default commands, all processing is done in myinlines() # no default commands, all processing is done in myinlines()
if [ "$INLINE" != "0" ] && [ "${iQUERY[ID]}" != "" ]; then if [ "$INLINE" != "0" ] && [ "${iQUERY[ID]}" != "" ]; then
if _is_function process_inline; then # forward iinline query to optional dispatcher
# forward iinline query to optional dispatcher _exec_if_function myinlines
_exec_if_function myinlines
fi
# regular (gobal) commands ... # regular (gobal) commands ...
# your commands are in mycommands() # your commands are in mycommands()