Combine them then. I assume the other commands you set up use aliases as well?
Then you can just combine it by
on *:text:*:#: {
linkpost $1-
otheralias $1-
}
Or you can just take the parts you want out of the alias and make your own code.
var %links /(?<=^|\s)((?>\S{3,8}:\/\/|w{3}\56)\S+)|\56( $+ %domains $+ )\b/iS
if ($regex($1-,%links)) {
.msg # /timeout $nick 1
Is quite literally all you'll need to make a link block.