Changed `weechat-handle-color-codes' into iterative code.

Fixes "Lisp nesting exceeds `max-lisp-eval-depth'" error.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>