A bit more code cleanup.

This commit is contained in:
Storm Dragon 2020-08-18 21:02:12 -04:00
parent 0eccf775da
commit d448ba2cf7

View File

@ -11,7 +11,7 @@ close_bot() {
msg() { msg() {
local msg="PRIVMSG $1 :" local msg="PRIVMSG $1 :"
shift shift
echo -en "${msg}$@\r\n" | tee -a "$input" echo -en "${msg}${*}\r\n" | tee -a "$input"
} }
nick() { nick() {
@ -23,11 +23,11 @@ nick() {
reply() { reply() {
shift shift
local msg="PRIVMSG $1 :" local msg="PRIVMSG $1 :"
echo -en "${msg}$@\r\n" | tee -a "$input" echo -en "${msg}${*}\r\n" | tee -a "$input"
} }
act() { act() {
local msg="PRIVMSG $1 :\x01ACTION" local msg="PRIVMSG $1 :\x01ACTION"
shift shift
echo -en "$msg $@\x01\r\n" | tee -a "$input" echo -en "$msg ${*}\x01\r\n" | tee -a "$input"
} }