aboutsummaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorMaria Lisina <sekoohaka.sarisan@gmail.com>2025-10-02 15:30:55 +0500
committerMaria Lisina <sekoohaka.sarisan@gmail.com>2025-10-02 15:30:55 +0500
commit01945d89b2e762a4728c08ed3a40657b06acde55 (patch)
tree752fae0e127887e56c7d72e4fad8a10ba01d7de9 /units
parent8ba674bbee573acd72df56fe5ab1d33719319d53 (diff)
*/*: Remove unused command /parent
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'units')
-rw-r--r--units/ib_common.zsh8
-rw-r--r--units/ib_file.zsh3
-rw-r--r--units/ib_name.zsh8
3 files changed, 2 insertions, 17 deletions
diff --git a/units/ib_common.zsh b/units/ib_common.zsh
index 78571c7..da257a8 100644
--- a/units/ib_common.zsh
+++ b/units/ib_common.zsh
@@ -32,9 +32,6 @@ if [[ -n "${1}" ]]
then
ib_post_id="${1}"
shift
-elif [[ -n "${ib_parent}" ]]
-then
- output_text="You must specify parent post ID"
else
output_title="Invalid arguments"
output_text="You must specify post ID or MD5 hash"
@@ -43,10 +40,7 @@ else
return 0
fi
-if [[ -n "${ib_parent}" ]]
-then
- ib_query="parent:${ib_post_id}"
-elif [[ ${#ib_post_id} -eq 32 ]]
+if [[ ${#ib_post_id} -eq 32 ]]
then
ib_query="md5:${ib_post_id}"
else
diff --git a/units/ib_file.zsh b/units/ib_file.zsh
index 85b2c6b..8fdd40f 100644
--- a/units/ib_file.zsh
+++ b/units/ib_file.zsh
@@ -110,9 +110,6 @@ then
output_text="Try different page or tag name"
;;
esac
- elif [[ -n "${ib_parent}" ]]
- then
- output_text="No results found"
else
output_text="Try different post ID or MD5 hash"
fi
diff --git a/units/ib_name.zsh b/units/ib_name.zsh
index 9e8f392..b6cf26a 100644
--- a/units/ib_name.zsh
+++ b/units/ib_name.zsh
@@ -16,13 +16,7 @@ fi
if [[ "${reply_text}" == "null" ]]
then
- if [[ -n "${ib_parent}" ]]
- then
- output_text="You must specify Image Board and parent post ID, or use this command in reply to a message"
- else
- output_text="You must specify Image Board and post ID or MD5 hash, or use this command in reply to a message"
- fi
-
+ output_text="You must specify Image Board and post ID or MD5 hash, or use this command in reply to a message"
return 0
fi