Removed debug statements.
This commit is contained in:
@@ -7,9 +7,6 @@ userName="$1"
|
|||||||
channelName="$2"
|
channelName="$2"
|
||||||
shift 2
|
shift 2
|
||||||
|
|
||||||
# Debug logging
|
|
||||||
echo "DEBUG say.sh: userName='$userName' channelName='$channelName' args='$*'" >> "$log"
|
|
||||||
|
|
||||||
# Check if there are any arguments
|
# Check if there are any arguments
|
||||||
if [[ -z "$*" ]]; then
|
if [[ -z "$*" ]]; then
|
||||||
msg "$channelName" "$userName: Please provide a message to say."
|
msg "$channelName" "$userName: Please provide a message to say."
|
||||||
@@ -27,7 +24,6 @@ if [[ "$channelName" == "$userName" ]]; then
|
|||||||
# PM context: check if first argument is a channel name
|
# PM context: check if first argument is a channel name
|
||||||
# Extract just the first word (bot.sh passes all remaining args as a single string)
|
# Extract just the first word (bot.sh passes all remaining args as a single string)
|
||||||
firstWord="${1%% *}"
|
firstWord="${1%% *}"
|
||||||
echo "DEBUG say.sh: PM context detected, firstWord='$firstWord', allArgs='$*'" >> "$log"
|
|
||||||
|
|
||||||
# Note: bot.sh strips "# " (hash-space) from commands, but "#channel" stays intact
|
# Note: bot.sh strips "# " (hash-space) from commands, but "#channel" stays intact
|
||||||
# Remove # prefix if present for comparison
|
# Remove # prefix if present for comparison
|
||||||
|
|||||||
Reference in New Issue
Block a user