mIRC uses the standard Windows editbox by default in most dialogs, including custom dialogs. The limit for the standard editbox is between 32k and 64k. I'll add support for richedit editboxes in custom dialogs for the next version however, which will allow you to specify an arbitrary limit using the "limit" custom dialog parameter.