import { ValidationError } from "./validation-error" ; export function validateIRCCommand ( command ) { if ( command . includes ( "\n" ) || command . includes ( "\r" ) ) { throw new ValidationError ( "IRC command may not include \\n or \\r" ) ; } }