Did you look aliases.ini? there is a default /k (/kick) alias.

That might explain the 7 No such channel error when you used echo -s $k(7, text)