summaryrefslogtreecommitdiffstats
path: root/ircbot.bash
diff options
context:
space:
mode:
Diffstat (limited to 'ircbot.bash')
-rwxr-xr-xircbot.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/ircbot.bash b/ircbot.bash
index 3939311..b6701c0 100755
--- a/ircbot.bash
+++ b/ircbot.bash
@@ -228,7 +228,7 @@ _readloop() {
if [[ $pos -lt 0 ]]; then
return 1
fi
- src="${msg:1:$pos}"
+ src="${msg:1:$((pos-1))}"
((++pos))
msg="${msg:$pos}"
fi