This is still a script related question. Variables have nothing to do with an IRC client "in general".