Just add each to a variable. You can append them to a variable (var %variable = %variable newdata), or you can add the data as a token to a variable (var %variable = $addtok(%variable,newdata,tokenchr)). Once you've added everything to the variable (i.e. after the while loop finishes), you msg the variable. Just keep in mind that there is a limit to how much data can be in a variable and how much can be displayed in most locations of mIRC. So unless you know you are going to be under the character limit, you may have to only allow a set number of items per line instead of trying to fit them all into one line. Note: If you limit the number of items per line, you'll need to msg the variable in the while loop whenever it has that number of items, then clear the variable and repeat. At the end (after the loop ends), if anything is remaining in the variable, then you have to msg it there as well.